From 6619802446549fb03af70e5001e4eb04499b1eb7 Mon Sep 17 00:00:00 2001 From: Frank Binns Date: Fri, 8 Sep 2023 16:42:53 +0100 Subject: [PATCH] pvr: treat VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT as not supported The required compiler support is missing for mutable format support, so return a not supported error from vkGetPhysicalDeviceImageFormatProperties2() when the VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT flag is set in the image format info structure. This results in the dEQP-VK.image.mutable.* conformance tests being treated as Not Supported. Signed-off-by: Frank Binns Reviewed-by: Karmjit Mahil Part-of: --- src/imagination/vulkan/pvr_formats.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/imagination/vulkan/pvr_formats.c b/src/imagination/vulkan/pvr_formats.c index 50cb22faddb..59c247fdac9 100644 --- a/src/imagination/vulkan/pvr_formats.c +++ b/src/imagination/vulkan/pvr_formats.c @@ -725,6 +725,11 @@ 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. */