radv: disable TC-compat htile on GFX9 in some cases

Similar to commit a38de4c011 ("radv: disable tc_compatible_cmask on
GFX9 in some cases"), GFX9 seems to have issues with TC-compat htile as
well.

I've only seen this with D16 and sample count 4.  But I am not sure
about the exact condition.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10161
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26263>
This commit is contained in:
Chia-I Wu 2023-11-17 12:31:32 -08:00 committed by Marge Bot
parent d173584b6e
commit 16a270f646

View file

@ -107,6 +107,11 @@ radv_use_tc_compat_htile_for_image(struct radv_device *device, const VkImageCrea
return false;
}
/* GFX9 has issues when the sample count is 4 and the format is D16 */
if (device->physical_device->rad_info.gfx_level == GFX9 && pCreateInfo->samples == 4 &&
format == VK_FORMAT_D16_UNORM)
return false;
return true;
}