diff options
author | Chad Versace <chadversary@chromium.org> | 2017-08-25 05:04:13 -0700 |
---|---|---|
committer | Chad Versace <chadversary@chromium.org> | 2017-09-06 13:07:12 -0700 |
commit | ec8ed2f2779c30863f7478b8f5ad9654abbff346 (patch) | |
tree | f7afea2587b5b5844006f8579da4a24a116d9ff2 | |
parent | e1e3c0384bb7243f339e0f7405c432a45cf92ff4 (diff) |
anv: Annotate entrypoint table with index and func name
This helps when debugging a broken entrypoint table.
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
-rw-r--r-- | src/intel/vulkan/anv_entrypoints_gen.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/vulkan/anv_entrypoints_gen.py b/src/intel/vulkan/anv_entrypoints_gen.py index f5c527ed92..3240704a0d 100644 --- a/src/intel/vulkan/anv_entrypoints_gen.py +++ b/src/intel/vulkan/anv_entrypoints_gen.py @@ -120,8 +120,8 @@ TEMPLATE_C = Template(textwrap.dedent(u"""\ ; static const struct anv_entrypoint entrypoints[] = { - % for _, _, _, num, h, _ in entrypoints: - { ${offsets[num]}, ${'{:0=#8x}'.format(h)} }, + % for _, name, _, num, h, _ in entrypoints: + [${num}] = { ${offsets[num]}, ${'{:0=#8x}'.format(h)} }, /* vk${name} */ % endfor }; |