From e24ef5d9141816edd3616f961a49b0a678bb48ac Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 17 Sep 2021 16:15:00 -0400 Subject: [PATCH] anv: assert that legacy_scanout isn't used with explicit modifiers these should be mutually exclusive Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/vulkan/anv_image.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c index f7c2b88285f..46ce702cec3 100644 --- a/src/intel/vulkan/anv_image.c +++ b/src/intel/vulkan/anv_image.c @@ -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);