Module: Mesa Branch: main Commit: 16a270f646e3f83ba095acc90d055807a7f405df URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=16a270f646e3f83ba095acc90d055807a7f405df
Author: Chia-I Wu <olva...@gmail.com> Date: Fri Nov 17 12:31:32 2023 -0800 radv: disable TC-compat htile on GFX9 in some cases Similar to commit a38de4c011d ("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> --- src/amd/vulkan/radv_image.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c index 5c7a1ad71e8..3655191abdf 100644 --- a/src/amd/vulkan/radv_image.c +++ b/src/amd/vulkan/radv_image.c @@ -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; }