Commit 63ab1c2b authored by Marek Olšák's avatar Marek Olšák Committed by Alex Deucher

drm/amdgpu: don't set unused tiling flags

Signed-off-by: default avatarMarek Olšák <marek.olsak@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Acked-by: default avatarChristian König <christian.koenig@amd.com>
parent 9f7eb536
...@@ -137,25 +137,13 @@ static int amdgpufb_create_pinned_object(struct amdgpu_fbdev *rfbdev, ...@@ -137,25 +137,13 @@ static int amdgpufb_create_pinned_object(struct amdgpu_fbdev *rfbdev,
if (fb_tiled) if (fb_tiled)
tiling_flags = AMDGPU_TILING_MACRO; 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); ret = amdgpu_bo_reserve(rbo, false);
if (unlikely(ret != 0)) if (unlikely(ret != 0))
goto out_unref; goto out_unref;
if (tiling_flags) { if (tiling_flags) {
ret = amdgpu_bo_set_tiling_flags(rbo, ret = amdgpu_bo_set_tiling_flags(rbo,
tiling_flags | AMDGPU_TILING_SURFACE); tiling_flags);
if (ret) if (ret)
dev_err(adev->dev, "FB failed to set tiling flags\n"); dev_err(adev->dev, "FB failed to set tiling flags\n");
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment