From: Alyssa Rosenzweig Date: Wed, 26 Aug 2020 20:52:23 +0000 (-0400) Subject: pan/decode: Print shader-db even for compute X-Git-Url: https://git.libre-soc.org/?p=mesa.git;a=commitdiff_plain;h=c088a3b5542a24ee0725007594f4afde7cf99b04 pan/decode: Print shader-db even for compute Stated rationale is silly. Signed-off-by: Alyssa Rosenzweig Part-of: --- diff --git a/src/panfrost/lib/decode.c b/src/panfrost/lib/decode.c index 95669df40f4..22bc165da8f 100644 --- a/src/panfrost/lib/decode.c +++ b/src/panfrost/lib/decode.c @@ -1386,26 +1386,18 @@ pandecode_shader_disassemble(mali_ptr shader_ptr, int shader_no, int type, MESA_SHADER_FRAGMENT : MESA_SHADER_VERTEX); } - /* Print shader-db stats. Skip COMPUTE jobs since they are used for - * driver-internal purposes with the blob and interfere */ - - bool should_shaderdb = type != MALI_JOB_TYPE_COMPUTE; - - if (should_shaderdb) { - unsigned nr_threads = - (stats.work_count <= 4) ? 4 : - (stats.work_count <= 8) ? 2 : - 1; - - pandecode_log_cont("shader%d - MESA_SHADER_%s shader: " - "%u inst, %u bundles, %u quadwords, " - "%u registers, %u threads, 0 loops, 0:0 spills:fills\n\n\n", - shader_id++, - shader_type_for_job(type), - stats.instruction_count, stats.bundle_count, stats.quadword_count, - stats.work_count, nr_threads); - } - + unsigned nr_threads = + (stats.work_count <= 4) ? 4 : + (stats.work_count <= 8) ? 2 : + 1; + + pandecode_log_cont("shader%d - MESA_SHADER_%s shader: " + "%u inst, %u bundles, %u quadwords, " + "%u registers, %u threads, 0 loops, 0:0 spills:fills\n\n\n", + shader_id++, + shader_type_for_job(type), + stats.instruction_count, stats.bundle_count, stats.quadword_count, + stats.work_count, nr_threads); return stats; }