[Mesa-dev] [PATCH 09/23] anv: Annotate entrypoint table with index and func name
Jason Ekstrand
jason at jlekstrand.net
Sat Sep 2 16:58:14 UTC 2017
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
On Sat, Sep 2, 2017 at 1:17 AM, Chad Versace <chadversary at chromium.org>
wrote:
> This helps when debugging a broken entrypoint table.
> ---
> src/intel/vulkan/anv_entrypoints_gen.py | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/intel/vulkan/anv_entrypoints_gen.py
> b/src/intel/vulkan/anv_entrypoints_gen.py
> index 82221ef94bd..983be09a39b 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
> };
>
> --
> 2.13.5
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170902/aef416aa/attachment.html>
More information about the mesa-dev
mailing list