intel: simplify shader stats names

This brings what ANV reports closer to what Iris reports, and is mostly dropping
redundancies.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39633>
This commit is contained in:
Alyssa Rosenzweig 2026-01-30 17:11:02 -05:00 committed by Marge Bot
parent 3d5170c705
commit fc53da9c39
3 changed files with 14 additions and 14 deletions

View file

@ -1448,11 +1448,11 @@ brw_generator::generate_code(const brw_shader &s,
stats->dispatch_width = dispatch_width;
stats->max_polygons = s.max_polygons;
stats->instrs = before_size / 16 - nop_count - sync_nop_count;
stats->send_messages = send_count;
stats->loop_count = loop_count;
stats->cycle_count = perf.latency;
stats->spill_count = shader_stats.spill_count;
stats->fill_count = shader_stats.fill_count;
stats->sends = send_count;
stats->loops = loop_count;
stats->cycles = perf.latency;
stats->spills = shader_stats.spill_count;
stats->fills = shader_stats.fill_count;
stats->max_live_registers = shader_stats.max_register_pressure;
stats->non_ssa_regs_after_nir = shader_stats.non_ssa_registers_after_nir;
stats->source_hash = prog_data->source_hash;

View file

@ -51,9 +51,9 @@ lower_base_workgroup_id(nir_builder *b, nir_intrinsic_instr *intrin,
static void
check_sends(struct genisa_stats *stats, unsigned send_count)
{
assert(stats->spill_count == 0);
assert(stats->fill_count == 0);
assert(stats->send_messages == send_count);
assert(stats->spills == 0);
assert(stats->fills == 0);
assert(stats->sends == send_count);
}
static struct anv_shader_internal *

View file

@ -133,29 +133,29 @@
<isa name="GenISA">
<stat name="Dispatch width" hidden="true">0 for vec4</stat>
<stat name="Max polygons" hidden="true"/>
<stat name="Instruction Count" display="Instrs">
<stat name="Instructions" display="Instrs">
Number of GEN instructions in the final generated shader executable.
</stat>
<stat name="SEND Count" display="Send messages">
<stat name="SENDs" display="Sends">
Number of instructions in the final generated shader executable
which access external units such as the constant cache or the sampler.
</stat>
<stat name="Loop Count" display="Loop count">
<stat name="Loops">
Number of loops (not unrolled) in the final generated shader
executable.
</stat>
<stat name="Cycle Count" display="Cycle count">
<stat name="Cycles">
Estimate of the number of EU cycles required to execute the final
generated executable. This is an estimate only and may vary greatly
from actual run-time performance.
</stat>
<stat name="Spill Count" display="Spill count">
<stat name="Spills">
Number of scratch spill operations. This gives a rough estimate of
the cost incurred due to spilling temporary values to memory. If
this is non-zero, you may want to adjust your shader to reduce
register pressure.
</stat>
<stat name="Fill Count" display="Fill count">
<stat name="Fills">
Number of scratch fill operations. This gives a rough estimate of
the cost incurred due to spilling temporary values to memory. If
this is non-zero, you may want to adjust your shader to reduce