From 87ce4c6ca4a13952a5b0658c94d638cf52afaed0 Mon Sep 17 00:00:00 2001 From: Luigi Santivetti Date: Fri, 24 Nov 2023 15:12:21 +0000 Subject: [PATCH] Revert "pvr: treat VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT as not supported" This reverts commit 6619802446549fb03af70e5001e4eb04499b1eb7. From testing, it is safe to revert this now as the driver can now do dEQP-VK.image.mutable.* and VK_KHR_maintenance2 tests expect the VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT set. Signed-off-by: Luigi Santivetti Acked-by: Erik Faye-Lund Part-of: --- src/imagination/vulkan/pvr_formats.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/imagination/vulkan/pvr_formats.c b/src/imagination/vulkan/pvr_formats.c index 5947db1eef2..6c264a0f06b 100644 --- a/src/imagination/vulkan/pvr_formats.c +++ b/src/imagination/vulkan/pvr_formats.c @@ -924,11 +924,6 @@ pvr_get_image_format_properties(struct pvr_physical_device *pdevice, goto err_unsupported_format; } - if (info->flags & VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT) { - result = vk_error(pdevice, VK_ERROR_FORMAT_NOT_SUPPORTED); - goto err_unsupported_format; - } - /* If VK_IMAGE_CREATE_EXTENDED_USAGE_BIT is set, the driver can't decide if a * specific format isn't supported based on the usage. */