Signed-off-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
if (fb_tiled)
tiling_flags = AMDGPU_TILING_MACRO;
-#ifdef __BIG_ENDIAN
- switch (bpp) {
- case 32:
- tiling_flags |= AMDGPU_TILING_SWAP_32BIT;
- break;
- case 16:
- tiling_flags |= AMDGPU_TILING_SWAP_16BIT;
- default:
- break;
- }
-#endif
-
ret = amdgpu_bo_reserve(rbo, false);
if (unlikely(ret != 0))
goto out_unref;
if (tiling_flags) {
ret = amdgpu_bo_set_tiling_flags(rbo,
- tiling_flags | AMDGPU_TILING_SURFACE);
+ tiling_flags);
if (ret)
dev_err(adev->dev, "FB failed to set tiling flags\n");
}