pan/bi: Label shader-db shaders
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 17 Dec 2020 01:39:58 +0000 (20:39 -0500)
committerMarge Bot <eric+marge@anholt.net>
Wed, 23 Dec 2020 17:06:56 +0000 (17:06 +0000)
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8213>

src/panfrost/bifrost/bifrost_compile.c

index 1728652..58e6df2 100644 (file)
@@ -2409,11 +2409,12 @@ bi_print_stats(bi_context *ctx, FILE *fp)
 
         /* Dump stats */
 
-        fprintf(stderr, "shader%d - %s shader: "
+        fprintf(stderr, "shader%d:%s - %s shader: "
                         "%u inst, %u nops, %u clauses, "
                         "%u threads, %u loops, "
                         "%u:%u spills:fills\n",
                         SHADER_DB_COUNT++,
+                        ctx->nir->info.label ?: "",
                         ctx->is_blend ? "PAN_SHADER_BLEND" :
                         gl_shader_stage_name(ctx->stage),
                         nr_ins, nr_nops, nr_clauses,