nvk: Stop returning VK_ERROR_FORMAT_NOT_SUPPORTED for non-blitable
authorFaith Ekstrand <faith.ekstrand@collabora.com>
Tue, 31 Jan 2023 02:11:48 +0000 (20:11 -0600)
committerMarge Bot <emma+marge@anholt.net>
Fri, 4 Aug 2023 21:31:54 +0000 (21:31 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>

src/nouveau/vulkan/nvk_physical_device.c

index 311b7e7..0c5e0fa 100644 (file)
@@ -469,9 +469,6 @@ nvk_GetPhysicalDeviceImageFormatProperties2(VkPhysicalDevice physicalDevice,
       if (format->vk_format != base_info->format)
          continue;
 
-      if (!format->supports_2d_blit)
-         return VK_ERROR_FORMAT_NOT_SUPPORTED;
-
       if (base_info->type == VK_IMAGE_TYPE_1D)
          base_props->imageFormatProperties.maxExtent = (VkExtent3D){32768, 1, 1};
       else if (base_info->type == VK_IMAGE_TYPE_2D)