intel/brw: Don't include sync.nop in INTEL_DEBUG instruction counts

In an earlier commit, I made us stop counting sync.nops in the shader
statistics we use for shader-db (brw_debug_log_message) and fossil-db
(stats->instructions = ...).  However, I missed adjusting the printout
for INTEL_DEBUG.

Fixes: 1497f4e0c2 ("intel/fs: Don't include sync.nop in instruction count statistics")
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31311>
This commit is contained in:
Kenneth Graunke 2024-09-19 16:19:39 -07:00 committed by Marge Bot
parent c243970d50
commit 878ae9708a

View file

@ -1432,7 +1432,8 @@ fs_generator::generate_code(const cfg_t *cfg, int dispatch_width,
"Promoted %u constants. "
"Compacted %d to %d bytes (%.0f%%)\n",
shader_name, params->source_hash, sha1buf,
dispatch_width, before_size / 16,
dispatch_width,
before_size / 16 - nop_count - sync_nop_count,
loop_count, perf.latency,
shader_stats.spill_count,
shader_stats.fill_count,