vulkan: skip non required extension structures
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Sun, 30 Jul 2023 09:15:25 +0000 (12:15 +0300)
committerMarge Bot <emma+marge@anholt.net>
Fri, 4 Aug 2023 13:55:11 +0000 (13:55 +0000)
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24365>

src/vulkan/util/vk_cmd_queue_gen.py

index 3677a0e..f16e1bf 100644 (file)
@@ -608,6 +608,8 @@ def get_types(doc, beta, api, types_to_defines):
         if _type.attrib.get('structextends') is None:
             continue
         for extended in _type.attrib.get('structextends').split(','):
+            if extended not in required:
+                continue
             types[extended].extended_by.append(types[_type.attrib['name']])
 
     return types