mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-19 14:58:32 +02:00
vk/update-aliases.py: simplify addition of other concatenated prefixes
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26484>
This commit is contained in:
parent
3fe90f2957
commit
04517193c5
1 changed files with 6 additions and 3 deletions
|
|
@ -61,9 +61,12 @@ def main(paths: list[str]):
|
|||
Entrypoint; perform the search for all the aliases and replace them.
|
||||
"""
|
||||
def prepare_identifier(identifier: str) -> str:
|
||||
# vk_find_struct() prepends `VK_STRUCTURE_TYPE_`, so that prefix
|
||||
# might not appear in the code
|
||||
identifier = remove_prefix(identifier, 'VK_STRUCTURE_TYPE_')
|
||||
for prefix in [
|
||||
# vk_find_struct() prepends `VK_STRUCTURE_TYPE_`, so that prefix
|
||||
# might not appear in the code
|
||||
'VK_STRUCTURE_TYPE_',
|
||||
]:
|
||||
identifier = remove_prefix(identifier, prefix)
|
||||
return identifier
|
||||
|
||||
aliases = {}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue