From 6a46b38d125b53d259beae9ca4b786990264585b Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 16 Dec 2020 20:39:58 -0500 Subject: [PATCH] pan/bi: Label shader-db shaders Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/bifrost_compile.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/panfrost/bifrost/bifrost_compile.c b/src/panfrost/bifrost/bifrost_compile.c index 17286529ca9..58e6df25c0a 100644 --- a/src/panfrost/bifrost/bifrost_compile.c +++ b/src/panfrost/bifrost/bifrost_compile.c @@ -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,