tu: Fix VK_FORMAT_A8_UNORM_KHR using UBWC when !has_8bpp_ubwc
Fixes hangs in Anno 1800 with DXVK 2.3
Fixes: 302907e347
("tu: Expose VK_KHR_maintenance5")
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25567>
This commit is contained in:

committed by
Marge Bot

parent
ac838c1c5c
commit
7caf3e70a1
@@ -316,11 +316,8 @@ ubwc_possible(struct tu_device *device,
|
||||
return false;
|
||||
|
||||
if (!info->a6xx.has_8bpp_ubwc &&
|
||||
(format == VK_FORMAT_R8_UNORM ||
|
||||
format == VK_FORMAT_R8_SNORM ||
|
||||
format == VK_FORMAT_R8_UINT ||
|
||||
format == VK_FORMAT_R8_SINT ||
|
||||
format == VK_FORMAT_R8_SRGB))
|
||||
vk_format_get_blocksizebits(format) == 8 &&
|
||||
tu6_plane_count(format) == 1)
|
||||
return false;
|
||||
|
||||
if (type == VK_IMAGE_TYPE_3D) {
|
||||
|
Reference in New Issue
Block a user