Revert "nvk: Stop returning VK_ERROR_FORMAT_NOT_SUPPORTED for non-blitable"

This reverts commit 74ad75f2624c50f732db35946a127eb11edee3e5.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
This commit is contained in:
Faith Ekstrand 2023-01-30 20:11:49 -06:00 committed by Marge Bot
parent 3e706a974e
commit d673111bc8

View file

@ -469,6 +469,9 @@ nvk_GetPhysicalDeviceImageFormatProperties2(VkPhysicalDevice physicalDevice,
if (format == NULL)
return VK_ERROR_FORMAT_NOT_SUPPORTED;
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)