radv: stop blocking non-2D import/export ops

these work fine

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33323>
This commit is contained in:
Mike Blumenkrantz 2025-01-30 10:07:00 -05:00 committed by Marge Bot
parent ca8a740e3b
commit 20013a1774

View file

@ -759,9 +759,6 @@ radv_check_modifier_support(struct radv_physical_device *pdev, const VkPhysicalD
{
uint32_t max_width, max_height;
if (info->type != VK_IMAGE_TYPE_2D)
return VK_ERROR_FORMAT_NOT_SUPPORTED;
if (radv_is_format_emulated(pdev, format))
return VK_ERROR_FORMAT_NOT_SUPPORTED;
@ -1100,8 +1097,6 @@ get_external_image_format_properties(struct radv_physical_device *pdev,
break;
FALLTHROUGH;
case VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD_BIT:
if (pImageFormatInfo->type != VK_IMAGE_TYPE_2D)
break;
flags = VK_EXTERNAL_MEMORY_FEATURE_EXPORTABLE_BIT | VK_EXTERNAL_MEMORY_FEATURE_IMPORTABLE_BIT;
if (handleType == VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD_BIT &&
pImageFormatInfo->tiling != VK_IMAGE_TILING_LINEAR)