radv: only configure the CMASK tiling for TC-compat on GFX8

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>
This commit is contained in:
Samuel Pitoiset
2021-03-03 17:21:16 +01:00
committed by Marge Bot
parent b9222cc906
commit a3835964ce
+6 -4
View 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);
}
}
}