From: Chad Versace Date: Fri, 25 Aug 2017 12:04:13 +0000 (-0700) Subject: anv: Annotate entrypoint table with index and func name X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ec8ed2f2779c30863f7478b8f5ad9654abbff346;p=mesa.git anv: Annotate entrypoint table with index and func name This helps when debugging a broken entrypoint table. Reviewed-by: Jason Ekstrand --- diff --git a/src/intel/vulkan/anv_entrypoints_gen.py b/src/intel/vulkan/anv_entrypoints_gen.py index f5c527ed92c..3240704a0d8 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 };