mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-25 12:20:17 +01:00
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:
parent
3e706a974e
commit
d673111bc8
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue