diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-02-24 01:57:18 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-02-24 01:57:18 +0000 |
commit | b24b5b9049e889ee4eb39b565bcc8d48bd45ab48 (patch) | |
tree | 658ca4e6b41655f49463c85edbaeda48979c394c /lib/mesa/src/vulkan/util/vk_extensions.py | |
parent | 57768bbb154c2879d34ec20e401b19472e77aaf7 (diff) |
Import Mesa 21.3.7
Diffstat (limited to 'lib/mesa/src/vulkan/util/vk_extensions.py')
-rw-r--r-- | lib/mesa/src/vulkan/util/vk_extensions.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/mesa/src/vulkan/util/vk_extensions.py b/lib/mesa/src/vulkan/util/vk_extensions.py index 852951f05..75bdf3dd9 100644 --- a/lib/mesa/src/vulkan/util/vk_extensions.py +++ b/lib/mesa/src/vulkan/util/vk_extensions.py @@ -104,8 +104,10 @@ def get_all_exts_from_xml(xml): version = None for enum_elem in ext_elem.findall('.require/enum'): if enum_elem.attrib['name'].endswith('_SPEC_VERSION'): - assert version is None - version = int(enum_elem.attrib['value']) + # Skip alias SPEC_VERSIONs + if 'value' in enum_elem.attrib: + assert version is None + version = int(enum_elem.attrib['value']) ext = Extension(name, version, True) extensions.append(Extension(name, version, True)) |