mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 17:48:10 +02:00
vk/update-aliases.py: only apply renames for the vulkan api (not vulkansc)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26484>
This commit is contained in:
parent
1b3fca1708
commit
40c82b5f67
1 changed files with 4 additions and 0 deletions
|
|
@ -34,6 +34,10 @@ def get_aliases(xml_file: pathlib.Path):
|
|||
+ xml.findall('.//type[@alias]')
|
||||
+ xml.findall('.//command[@alias]')
|
||||
):
|
||||
# Some renames only apply to some APIs
|
||||
if 'api' in node.attrib and 'vulkan' not in node.attrib['api'].split(','):
|
||||
continue
|
||||
|
||||
yield node.attrib['name'], node.attrib['alias']
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue