mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-20 20:50:44 +02:00
vulkan: Update enum_to_str conversion to handle ARM enum names
Next Vulkan update will have VK_DATA_GRAPH_PIPELINE_PROPERTY_MAX_ENUM_ARM and similar names, so apply the same rule for ARM prefix. Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36681>
This commit is contained in:
parent
12cdcccf24
commit
c00b167d16
1 changed files with 1 additions and 1 deletions
|
|
@ -296,7 +296,7 @@ def compute_max_enum_name(s):
|
|||
max_enum_name = CamelCase_to_SHOUT_CASE(s)
|
||||
last_prefix = max_enum_name.rsplit('_', 1)[-1]
|
||||
# Those special prefixes need to be always at the end
|
||||
if last_prefix in ['AMD', 'EXT', 'INTEL', 'KHR', 'NV', 'LUNARG', 'QCOM', 'MSFT'] :
|
||||
if last_prefix in ['AMD', 'EXT', 'INTEL', 'KHR', 'NV', 'LUNARG', 'QCOM', 'MSFT', 'ARM'] :
|
||||
max_enum_name = "_".join(max_enum_name.split('_')[:-1])
|
||||
max_enum_name = max_enum_name + "_MAX_ENUM_" + last_prefix
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue