Module: Mesa
Branch: main
Commit: 40c82b5f67dc923817f64821314134d508a8aad7
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=40c82b5f67dc923817f64821314134d508a8aad7

Author: Eric Engestrom <[email protected]>
Date:   Mon Dec  4 09:39:15 2023 +0000

vk/update-aliases.py: only apply renames for the vulkan api (not vulkansc)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26484>

---

 src/vulkan/registry/update-aliases.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/vulkan/registry/update-aliases.py 
b/src/vulkan/registry/update-aliases.py
index 41aaed3ceac..2a5fdee5d4e 100755
--- a/src/vulkan/registry/update-aliases.py
+++ b/src/vulkan/registry/update-aliases.py
@@ -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']
 
 

Reply via email to