From 31ddfe26ebc18aa83c86ef44b2aeeefd6dfab51b Mon Sep 17 00:00:00 2001 From: Olivia Lee Date: Tue, 7 Apr 2026 00:01:05 -0700 Subject: [PATCH] panfrost: don't try to emit varying shader stats on v12+ On v12+, IDVS no longer has separate position and varying variants, so we only need to emit stats for one binary. Attempting to emit stats for the nonexistent varying shader breaks shader-db. Fixes: 7819b103fa7 ("pan/bi: Add support for IDVS2 on Avalon") Signed-off-by: Olivia Lee Reviewed-by: Lars-Ivar Hesselberg Simonsen Reviewed-by: Eric R. Smith Part-of: --- src/gallium/drivers/panfrost/pan_shader.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/panfrost/pan_shader.c b/src/gallium/drivers/panfrost/pan_shader.c index 70b44878083..67b10df0a7f 100644 --- a/src/gallium/drivers/panfrost/pan_shader.c +++ b/src/gallium/drivers/panfrost/pan_shader.c @@ -224,7 +224,8 @@ panfrost_shader_compile(struct panfrost_screen *screen, const nir_shader *ir, /* Report stats only if we really got the shader compiled */ if (out->binary.size > 0) { - if (s->info.stage == MESA_SHADER_VERTEX && out->info.vs.idvs) { + if (s->info.stage == MESA_SHADER_VERTEX && + out->info.vs.secondary_offset) { pan_stats_util_debug(dbg, "MESA_SHADER_POSITION", &out->info.stats); pan_stats_util_debug(dbg, "MESA_SHADER_VERTEX",