Module: Mesa Branch: master Commit: 31864017510223c62c940129cdc0a1c352f38e32 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=31864017510223c62c940129cdc0a1c352f38e32
Author: Alyssa Rosenzweig <[email protected]> Date: Mon Nov 2 13:41:13 2020 -0500 pan/bi: Suppress disassembly for internal shaders Backport of 756441b2979c2664aaa13a67dbdaf5b7e853286e for bifrost. Signed-off-by: Alyssa Rosenzweig <[email protected]> Reviewed-by: Boris Brezillon <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7408> --- src/panfrost/bifrost/bifrost_compile.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/panfrost/bifrost/bifrost_compile.c b/src/panfrost/bifrost/bifrost_compile.c index 206551fdcdc..6f9497d4eb7 100644 --- a/src/panfrost/bifrost/bifrost_compile.c +++ b/src/panfrost/bifrost/bifrost_compile.c @@ -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; _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
