panfrost: fix swapped stats for varing and position shaders

Fixes: 4da7b12000 ("panfrost: port to common stats framework")
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37757>
This commit is contained in:
Iago Toral Quiroga
2025-07-19 00:44:21 +02:00
committed by Marge Bot
parent ad22f2419a
commit 6ee8fafac1
+5 -3
View File
@@ -232,12 +232,14 @@ panfrost_shader_compile(struct panfrost_screen *screen, const nir_shader *ir,
screen->vtbl.compile_shader(s, &inputs, &out->binary, &out->info);
pan_stats_util_debug(dbg, mesa_shader_stage_name(s->info.stage),
&out->info.stats);
if (s->info.stage == MESA_SHADER_VERTEX && out->info.vs.idvs) {
pan_stats_util_debug(dbg, "MESA_SHADER_POSITION",
&out->info.stats);
pan_stats_util_debug(dbg, "MESA_SHADER_VERTEX",
&out->info.stats_idvs_varying);
} else {
pan_stats_util_debug(dbg, mesa_shader_stage_name(s->info.stage),
&out->info.stats);
}
assert(req_local_mem >= out->info.wls_size);