radv: enable TC-compat HTILE with D32S8 and MSAA on GFX9+

Only GFX8 has some depth/stencil resolve failures.

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/8562>
This commit is contained in:
Samuel Pitoiset 2021-01-18 16:02:56 +01:00 committed by Marge Bot
parent 60ead6e04b
commit cc5b6a0e89

View file

@ -96,7 +96,8 @@ radv_use_tc_compat_htile_for_image(struct radv_device *device,
/* FIXME: for some reason TC compat with 2/4/8 samples breaks some cts
* tests - disable for now.
*/
if (pCreateInfo->samples >= 2 && format == VK_FORMAT_D32_SFLOAT_S8_UINT)
if (device->physical_device->rad_info.chip_class < GFX9 &&
pCreateInfo->samples >= 2 && format == VK_FORMAT_D32_SFLOAT_S8_UINT)
return false;
/* GFX9 supports both 32-bit and 16-bit depth surfaces, while GFX8 only