[PATCH 78/88] drm/amdgpu: don't set unused tiling flags
Alex Deucher
alexdeucher at gmail.com
Tue May 26 20:20:17 PDT 2015
From: Marek Olšák <marek.olsak at amd.com>
Signed-off-by: Marek Olšák <marek.olsak at amd.com>
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
Acked-by: Christian König <christian.koenig at amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c
index 2b1735d..ef61198 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");
}
--
1.8.3.1
More information about the dri-devel
mailing list