anv: silence wsi debug logging

this is triggered by mesa's own wsi handling, so stop printing nonsense

Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14743>
This commit is contained in:
Mike Blumenkrantz 2022-01-26 15:46:36 -05:00 committed by Marge Bot
parent 6018d5c44a
commit fe3984b8cd
2 changed files with 7 additions and 2 deletions

View File

@ -3653,7 +3653,11 @@ VkResult anv_AllocateMemory(
}
default:
anv_debug_ignored_stype(ext->sType);
if (ext->sType != VK_STRUCTURE_TYPE_WSI_MEMORY_ALLOCATE_INFO_MESA)
/* this isn't a real enum value,
* so use conditional to avoid compiler warn
*/
anv_debug_ignored_stype(ext->sType);
break;
}
}

View File

@ -1352,7 +1352,8 @@ VkResult anv_GetPhysicalDeviceImageFormatProperties2(
external_info = (const void *) s;
break;
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_DRM_FORMAT_MODIFIER_INFO_EXT:
/* anv_get_image_format_properties will handle this */
case VK_STRUCTURE_TYPE_IMAGE_FORMAT_LIST_CREATE_INFO_KHR:
/* anv_get_image_format_properties will handle these */
break;
case VK_STRUCTURE_TYPE_IMAGE_STENCIL_USAGE_CREATE_INFO_EXT:
/* Ignore but don't warn */