projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c2cd8b
)
vulkan: Generate defines for aliases of promoted enums
author
Iván Briano
<ivan.briano@intel.com>
Thu, 7 Oct 2021 18:53:27 +0000
(11:53 -0700)
committer
Marge Bot
<eric+marge@anholt.net>
Mon, 11 Oct 2021 18:14:06 +0000
(18:14 +0000)
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13264>
src/vulkan/util/gen_enum_to_str.py
patch
|
blob
|
history
diff --git
a/src/vulkan/util/gen_enum_to_str.py
b/src/vulkan/util/gen_enum_to_str.py
index
4cc6370
..
7357b53
100644
(file)
--- a/
src/vulkan/util/gen_enum_to_str.py
+++ b/
src/vulkan/util/gen_enum_to_str.py
@@
-201,8
+201,8
@@
H_DEFINE_TEMPLATE = Template(textwrap.dedent(u"""\
% if enum.guard:
#ifdef ${enum.guard}
% endif
- % for
v in enum.values.key
s():
- #define ${
enum.values[v]
} (${hex(v)}ULL)
+ % for
n, v in enum.name_to_value.item
s():
+ #define ${
n
} (${hex(v)}ULL)
% endfor
% if enum.guard:
#endif