mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 04:50:11 +01:00
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:
parent
2f00f82469
commit
3186401751
1 changed files with 4 additions and 4 deletions
|
|
@ -2137,7 +2137,7 @@ bifrost_compile_shader_nir(void *mem_ctx, nir_shader *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);
|
||||
}
|
||||
|
||||
|
|
@ -2178,11 +2178,11 @@ bifrost_compile_shader_nir(void *mem_ctx, nir_shader *nir,
|
|||
}
|
||||
} 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 @@ bifrost_compile_shader_nir(void *mem_ctx, nir_shader *nir,
|
|||
|
||||
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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue