pan/bi: Suppress disassembly for internal shaders

Backport of 756441b297 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>
This commit is contained in:
Alyssa Rosenzweig 2020-11-02 13:41:13 -05:00 committed by Marge Bot
parent 2f00f82469
commit 3186401751

View file

@ -2137,7 +2137,7 @@ bifrost_compile_shader_nir(void *mem_ctx, nir_shader *nir,
bi_optimize_nir(nir); bi_optimize_nir(nir);
if (bifrost_debug & BIFROST_DBG_SHADERS) { if (bifrost_debug & BIFROST_DBG_SHADERS && !nir->info.internal) {
nir_print_shader(nir, stdout); nir_print_shader(nir, stdout);
} }
@ -2178,11 +2178,11 @@ bifrost_compile_shader_nir(void *mem_ctx, nir_shader *nir,
} }
} while(progress); } while(progress);
if (bifrost_debug & BIFROST_DBG_SHADERS) if (bifrost_debug & BIFROST_DBG_SHADERS && !nir->info.internal)
bi_print_shader(ctx, stdout); bi_print_shader(ctx, stdout);
bi_schedule(ctx); bi_schedule(ctx);
bi_register_allocate(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); bi_print_shader(ctx, stdout);
util_dynarray_init(&program->compiled, NULL); util_dynarray_init(&program->compiled, NULL);
@ -2190,7 +2190,7 @@ bifrost_compile_shader_nir(void *mem_ctx, nir_shader *nir,
memcpy(program->blend_ret_offsets, ctx->blend_ret_offsets, sizeof(program->blend_ret_offsets)); 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); disassemble_bifrost(stdout, program->compiled.data, program->compiled.size, true);
program->tls_size = ctx->tls_size; program->tls_size = ctx->tls_size;