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:
Eric Engestrom 2023-12-04 09:39:15 +00:00 committed by Marge Bot
parent 1b3fca1708
commit 40c82b5f67

View file

@ -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']