Module: Mesa
Branch: main
Commit: e24ef5d9141816edd3616f961a49b0a678bb48ac
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=e24ef5d9141816edd3616f961a49b0a678bb48ac

Author: Mike Blumenkrantz <[email protected]>
Date:   Fri Sep 17 16:15:00 2021 -0400

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

these should be mutually exclusive

Reviewed-by: Lionel Landwerlin <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12919>

---

 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);

Reply via email to