Revert "ac/surface: require that gfx8 doesn't have DCC in order to be displayable"
authorMarek Olšák <marek.olsak@amd.com>
Mon, 6 Jul 2020 22:01:25 +0000 (18:01 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 8 Jul 2020 19:16:15 +0000 (19:16 +0000)
This reverts commit 7406ea37e6b666d474ab62982ca333d518c84231.

Fixes: 7406ea37 "ac/surface: require that gfx8 doesn't have DCC in order to be displayable"
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3190
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5780>

src/amd/common/ac_surface.c

index 905f33c8642072f31197a6ae13be10dce5c32fcf..169b9737a0ce47eaf0c3925ca9d331d9cc320e64 100644 (file)
@@ -1120,10 +1120,9 @@ static int gfx6_compute_surface(ADDR_HANDLE addrlib,
        }
 
        surf->is_linear = surf->u.legacy.level[0].mode == RADEON_SURF_MODE_LINEAR_ALIGNED;
-       surf->is_displayable = (surf->is_linear ||
-                               surf->micro_tile_mode == RADEON_MICRO_MODE_DISPLAY ||
-                               surf->micro_tile_mode == RADEON_MICRO_MODE_RENDER /* rotated */) &&
-                              !surf->dcc_size;
+       surf->is_displayable = surf->is_linear ||
+                              surf->micro_tile_mode == RADEON_MICRO_MODE_DISPLAY ||
+                              surf->micro_tile_mode == RADEON_MICRO_MODE_RENDER;
 
        /* The rotated micro tile mode doesn't work if both CMASK and RB+ are
         * used at the same time. This case is not currently expected to occur