From 63ab1c2beefe36d49a19f9f715fefdc293546e39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Thu, 14 May 2015 23:03:57 +0200 Subject: [PATCH] drm/amdgpu: don't set unused tiling flags MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marek Olšák Reviewed-by: Alex Deucher Acked-by: Christian König --- 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 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"); } -- GitLab