summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2015-05-14 23:03:57 +0200
committerAlex Deucher <alexander.deucher@amd.com>2015-06-04 03:03:45 +0200
commit63ab1c2beefe36d49a19f9f715fefdc293546e39 (patch)
tree7b0db5ba540fda7c346656397154aac1c43fb3ab /drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c
parentdrm/amdgpu: actually use the VM map parameters (diff)
downloadlinux-63ab1c2beefe36d49a19f9f715fefdc293546e39.tar.xz
linux-63ab1c2beefe36d49a19f9f715fefdc293546e39.zip
drm/amdgpu: don't set unused tiling flags
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c
index 2b1735d2efd6..ef611986b2b6 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c
@@ -137,25 +137,13 @@ static int amdgpufb_create_pinned_object(struct amdgpu_fbdev *rfbdev,
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");
}