summaryrefslogtreecommitdiff
path: root/lib/mesa/src/vulkan/util/vk_extensions.py
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2022-02-24 01:57:18 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2022-02-24 01:57:18 +0000
commitb24b5b9049e889ee4eb39b565bcc8d48bd45ab48 (patch)
tree658ca4e6b41655f49463c85edbaeda48979c394c /lib/mesa/src/vulkan/util/vk_extensions.py
parent57768bbb154c2879d34ec20e401b19472e77aaf7 (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.py6
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))