anv: Annotate entrypoint table with index and func name
authorChad Versace <chadversary@chromium.org>
Fri, 25 Aug 2017 12:04:13 +0000 (05:04 -0700)
committerChad Versace <chadversary@chromium.org>
Wed, 6 Sep 2017 20:07:12 +0000 (13:07 -0700)
This helps when debugging a broken entrypoint table.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_entrypoints_gen.py

index f5c527ed92cd38a7f995801c978a4f9fc3be3700..3240704a0d8661a532fa3a8f25f817d1b8d3f469 100644 (file)
@@ -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
     };