nvc0: print the shader type when dumping headers
authorKarol Herbst <kherbst@redhat.com>
Fri, 15 Dec 2017 19:04:59 +0000 (20:04 +0100)
committerKarol Herbst <kherbst@redhat.com>
Sun, 17 Mar 2019 09:33:27 +0000 (10:33 +0100)
this makes debugging the shader header a little easier

Acked-by: Pierre Moreau <pierre.morrow@free.fr>
Signed-off-by: Karol Herbst <kherbst@redhat.com>
src/gallium/drivers/nouveau/nvc0/nvc0_program.c

index 1bbfa4a942817461d3f44159e548c69b1b420255..008b660b8c072ee7a759a81739b9231391844bf3 100644 (file)
@@ -554,6 +554,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]);