pan/bi: Suppress disassembly for internal shaders
Backport of 756441b2979c2664aaa13a67dbdaf5b7e853286e for bifrost.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7408>
diff --git a/src/panfrost/bifrost/bifrost_compile.c b/src/panfrost/bifrost/bifrost_compile.c
index 206551f..6f9497d 100644
--- a/src/panfrost/bifrost/bifrost_compile.c
+++ b/src/panfrost/bifrost/bifrost_compile.c
@@ -2137,7 +2137,7 @@
bi_optimize_nir(nir);
- if (bifrost_debug & BIFROST_DBG_SHADERS) {
+ if (bifrost_debug & BIFROST_DBG_SHADERS && !nir->info.internal) {
nir_print_shader(nir, stdout);
}
@@ -2178,11 +2178,11 @@
}
} while(progress);
- if (bifrost_debug & BIFROST_DBG_SHADERS)
+ if (bifrost_debug & BIFROST_DBG_SHADERS && !nir->info.internal)
bi_print_shader(ctx, stdout);
bi_schedule(ctx);
bi_register_allocate(ctx);
- if (bifrost_debug & BIFROST_DBG_SHADERS)
+ if (bifrost_debug & BIFROST_DBG_SHADERS && !nir->info.internal)
bi_print_shader(ctx, stdout);
util_dynarray_init(&program->compiled, NULL);
@@ -2190,7 +2190,7 @@
memcpy(program->blend_ret_offsets, ctx->blend_ret_offsets, sizeof(program->blend_ret_offsets));
- if (bifrost_debug & BIFROST_DBG_SHADERS)
+ if (bifrost_debug & BIFROST_DBG_SHADERS && !nir->info.internal)
disassemble_bifrost(stdout, program->compiled.data, program->compiled.size, true);
program->tls_size = ctx->tls_size;