radv: only configure the CMASK tiling for TC-compat on GFX8
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 3 Mar 2021 16:21:16 +0000 (17:21 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 17 Mar 2021 08:55:15 +0000 (08:55 +0000)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9415>

src/amd/vulkan/radv_device.c

index de96308..043f763 100644 (file)
@@ -6978,10 +6978,12 @@ radv_initialise_color_surface(struct radv_device *device,
                         */
                        cb->cb_color_info |= S_028C70_FMASK_COMPRESS_1FRAG_ONLY(1);
 
-                       /* Set CMASK into a tiling format that allows the
-                        * texture block to read it.
-                        */
-                       cb->cb_color_info |= S_028C70_CMASK_ADDR_TYPE(2);
+                       if (device->physical_device->rad_info.chip_class == GFX8) {
+                               /* Set CMASK into a tiling format that allows
+                                * the texture block to read it.
+                                */
+                               cb->cb_color_info |= S_028C70_CMASK_ADDR_TYPE(2);
+                       }
                }
        }