drm/amdgpu: don't set unused tiling flags
authorMarek Olšák <marek.olsak@amd.com>
Thu, 14 May 2015 21:03:57 +0000 (23:03 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 4 Jun 2015 01:03:45 +0000 (21:03 -0400)
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c

index 2b1735d2efd63d148823864d20150caec0c08ed5..ef611986b2b6e73b6192cfd9d75196a2e4a2726d 100644 (file)
@@ -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");
        }