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:
committed by
Marge Bot
parent
1b3fca1708
commit
40c82b5f67
@@ -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']
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user