mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-10 07:48:19 +02:00
etnaviv: Drop unused num_loops shader stat
The field was never populated (initialized to 0 with a TODO) yet printed in dump_shader_info(..) and etna_dump_shader(..), giving the misleading impression that loop counts were tracked. Remove the field and its consumers. Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41560>
This commit is contained in:
parent
4ac11c9006
commit
fbd2f140fe
3 changed files with 2 additions and 6 deletions
|
|
@ -101,7 +101,6 @@ struct etna_shader_variant {
|
|||
|
||||
mesa_shader_stage stage;
|
||||
uint32_t code_size; /* code size in uint32 words */
|
||||
unsigned num_loops;
|
||||
unsigned num_temps;
|
||||
|
||||
/* ETNA_DIRTY_* flags that, when set in context dirty, mean that the
|
||||
|
|
|
|||
|
|
@ -1230,7 +1230,6 @@ etna_compile_shader(struct etna_shader_variant *v)
|
|||
|
||||
v->stage = s->info.stage;
|
||||
v->uses_discard = s->info.fs.uses_discard;
|
||||
v->num_loops = 0; /* TODO */
|
||||
v->vs_id_in_reg = -1;
|
||||
v->vs_pos_out_reg = -1;
|
||||
v->vs_pointsize_out_reg = -1;
|
||||
|
|
|
|||
|
|
@ -67,7 +67,6 @@ etna_dump_shader(const struct etna_shader_variant *shader)
|
|||
|
||||
etna_disasm(shader->code, shader->code_size, PRINT_RAW);
|
||||
|
||||
printf("num loops: %i\n", shader->num_loops);
|
||||
printf("num temps: %i\n", shader->num_temps);
|
||||
printf("immediates:\n");
|
||||
for (int idx = 0; idx < shader->uniforms.count; ++idx) {
|
||||
|
|
@ -423,12 +422,11 @@ dump_shader_info(struct etna_shader_variant *v, struct util_debug_callback *debu
|
|||
|
||||
util_debug_message(debug, SHADER_INFO,
|
||||
"%s shader: %u instructions, %u temps, "
|
||||
"%u immediates, %u loops",
|
||||
"%u immediates",
|
||||
etna_shader_stage(v->shader),
|
||||
v->code_size / 4,
|
||||
v->num_temps,
|
||||
v->uniforms.count,
|
||||
v->num_loops);
|
||||
v->uniforms.count);
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue