mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 22:10:10 +01:00
vulkan: Filter out provisional extensions
Acked-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21225>
This commit is contained in:
parent
ef3e75d7f3
commit
68cb42e52b
1 changed files with 5 additions and 0 deletions
|
|
@ -17,6 +17,7 @@ class Extension:
|
|||
self.type = None
|
||||
self.number = number
|
||||
self.platform = None
|
||||
self.provisional = False
|
||||
self.ext_version = int(ext_version)
|
||||
self.supported = []
|
||||
|
||||
|
|
@ -43,6 +44,7 @@ class Extension:
|
|||
ext = Extension(name, number, version)
|
||||
ext.type = ext_elem.attrib['type']
|
||||
ext.platform = ext_elem.attrib.get('platform', None)
|
||||
ext.provisional = ext_elem.attrib.get('provisional', False)
|
||||
ext.supported = supported
|
||||
|
||||
return ext
|
||||
|
|
@ -190,6 +192,9 @@ def get_all_required(xml, thing, api):
|
|||
if api not in ext.supported:
|
||||
continue
|
||||
|
||||
if ext.provisional:
|
||||
continue
|
||||
|
||||
for require in extension.findall('./require'):
|
||||
if not filter_api(require, api):
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue