[Mesa-dev] [PATCH v5 03/34] nvir: print the shader type when dumping headers

Pierre Moreau pierre.morrow at free.fr
Tue Feb 20 21:18:03 UTC 2018


Acked-by: Pierre Moreau <pierre.morrow at free.fr>

On 2018-02-20 — 22:02, Karol Herbst wrote:
> this makes debugging the shader header a little easier
> 
> Signed-off-by: Karol Herbst <kherbst at redhat.com>
> ---
>  src/gallium/drivers/nouveau/nvc0/nvc0_program.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_program.c b/src/gallium/drivers/nouveau/nvc0/nvc0_program.c
> index e6157f550d..fd65859516 100644
> --- a/src/gallium/drivers/nouveau/nvc0/nvc0_program.c
> +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_program.c
> @@ -541,6 +541,7 @@ nvc0_program_dump(struct nvc0_program *prog)
>     unsigned pos;
>  
>     if (prog->type != PIPE_SHADER_COMPUTE) {
> +      debug_printf("dumping HDR for type %i\n", prog->type);
>        for (pos = 0; pos < ARRAY_SIZE(prog->hdr); ++pos)
>           debug_printf("HDR[%02"PRIxPTR"] = 0x%08x\n",
>                        pos * sizeof(prog->hdr[0]), prog->hdr[pos]);
> -- 
> 2.14.3
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180220/cf365744/attachment.sig>


More information about the mesa-dev mailing list