From a3835964ce2ce74ad60b00593ec56a936b028d08 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Wed, 3 Mar 2021 17:21:16 +0100 Subject: [PATCH] radv: only configure the CMASK tiling for TC-compat on GFX8 Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Part-of: --- src/amd/vulkan/radv_device.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index de96308..043f763 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -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); + } } } -- 2.7.4