anv: assert that legacy_scanout isn't used with explicit modifiers

these should be mutually exclusive

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12919>
This commit is contained in:
Mike Blumenkrantz 2021-09-17 16:15:00 -04:00
parent f1a7cc54f3
commit e24ef5d914
1 changed files with 1 additions and 0 deletions

View File

@ -1276,6 +1276,7 @@ anv_image_create(VkDevice _device,
anv_image_create_usage(pCreateInfo, image->vk.stencil_usage);
if (pCreateInfo->tiling == VK_IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT) {
assert(!image->vk.wsi_legacy_scanout);
mod_explicit_info =
vk_find_struct_const(pCreateInfo->pNext,
IMAGE_DRM_FORMAT_MODIFIER_EXPLICIT_CREATE_INFO_EXT);