mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
anv: remove errors on format queries
It's pretty spammy and since the whole purpose of queries is to report support, why bother with errors? Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38661>
This commit is contained in:
parent
15e02eb6ab
commit
5324712952
1 changed files with 2 additions and 18 deletions
|
|
@ -1732,9 +1732,6 @@ anv_get_image_format_properties(
|
|||
* non-mipmapped single-sample) 2D images.
|
||||
*/
|
||||
if (info->type != VK_IMAGE_TYPE_2D && isl_mod_info->modifier != DRM_FORMAT_MOD_LINEAR) {
|
||||
vk_errorf(physical_device, VK_ERROR_FORMAT_NOT_SUPPORTED,
|
||||
"non-linear VK_IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT "
|
||||
"requires VK_IMAGE_TYPE_2D");
|
||||
goto unsupported;
|
||||
}
|
||||
|
||||
|
|
@ -1968,13 +1965,8 @@ anv_get_image_format_properties(
|
|||
/* This memory handle has no restrictions on driverUUID nor deviceUUID,
|
||||
* and therefore requires explicit memory layout.
|
||||
*/
|
||||
if (!tiling_has_explicit_layout) {
|
||||
vk_errorf(physical_device, VK_ERROR_FORMAT_NOT_SUPPORTED,
|
||||
"VK_EXTERNAL_MEMORY_HANDLE_TYPE_DMA_BUF_BIT_EXT "
|
||||
"requires VK_IMAGE_TILING_LINEAR or "
|
||||
"VK_IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT");
|
||||
if (!tiling_has_explicit_layout)
|
||||
goto unsupported;
|
||||
}
|
||||
|
||||
/* With an explicit memory layout, we don't care which type of fd
|
||||
* the image belongs too. Both OPAQUE_FD and DMA_BUF are
|
||||
|
|
@ -1987,13 +1979,8 @@ anv_get_image_format_properties(
|
|||
/* This memory handle has no restrictions on driverUUID nor deviceUUID,
|
||||
* and therefore requires explicit memory layout.
|
||||
*/
|
||||
if (!tiling_has_explicit_layout) {
|
||||
vk_errorf(physical_device, VK_ERROR_FORMAT_NOT_SUPPORTED,
|
||||
"VK_EXTERNAL_MEMORY_HANDLE_TYPE_HOST_ALLOCATION_BIT_EXT "
|
||||
"requires VK_IMAGE_TILING_LINEAR or "
|
||||
"VK_IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT");
|
||||
if (!tiling_has_explicit_layout)
|
||||
goto unsupported;
|
||||
}
|
||||
|
||||
if (external_props)
|
||||
external_props->externalMemoryProperties = userptr_props;
|
||||
|
|
@ -2022,9 +2009,6 @@ anv_get_image_format_properties(
|
|||
* vkGetPhysicalDeviceImageFormatProperties2 returns
|
||||
* VK_ERROR_FORMAT_NOT_SUPPORTED.
|
||||
*/
|
||||
vk_errorf(physical_device, VK_ERROR_FORMAT_NOT_SUPPORTED,
|
||||
"unsupported VkExternalMemoryTypeFlagBits 0x%x",
|
||||
external_info->handleType);
|
||||
goto unsupported;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue