From 909e06075da15a2eaf9a978c97432ae04f918a76 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Mon, 21 Dec 2020 17:50:04 +0100 Subject: [PATCH] radv: ignore the mutable bit for TC-compatible HTILE All depth/stencil formats are incompatible each others, so the mutable bit and the image format list can be ignored. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Part-of: --- src/amd/vulkan/radv_image.c | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c index e0e5891..60632a5 100644 --- a/src/amd/vulkan/radv_image.c +++ b/src/amd/vulkan/radv_image.c @@ -108,29 +108,6 @@ radv_use_tc_compat_htile_for_image(struct radv_device *device, format != VK_FORMAT_D16_UNORM) return false; - if (pCreateInfo->flags & VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT) { - const struct VkImageFormatListCreateInfo *format_list = - (const struct VkImageFormatListCreateInfo *) - vk_find_struct_const(pCreateInfo->pNext, - IMAGE_FORMAT_LIST_CREATE_INFO); - - /* We have to ignore the existence of the list if viewFormatCount = 0 */ - if (format_list && format_list->viewFormatCount) { - /* compatibility is transitive, so we only need to check - * one format with everything else. - */ - for (unsigned i = 0; i < format_list->viewFormatCount; ++i) { - if (format_list->pViewFormats[i] == VK_FORMAT_UNDEFINED) - continue; - - if (format != format_list->pViewFormats[i]) - return false; - } - } else { - return false; - } - } - return true; } -- 2.7.4