From 862d62100279b7da8a609332d13e4ffe2cf8be86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Molinari?= Date: Tue, 24 Feb 2026 16:13:02 +0100 Subject: [PATCH] panfrost: Fix -Wunused-variable warning on arch > 7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Loïc Molinari Reviewed-by: Erik Faye-Lund Part-of: --- src/gallium/drivers/panfrost/pan_cmdstream.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gallium/drivers/panfrost/pan_cmdstream.c b/src/gallium/drivers/panfrost/pan_cmdstream.c index 485113a284c..0753043fcd5 100644 --- a/src/gallium/drivers/panfrost/pan_cmdstream.c +++ b/src/gallium/drivers/panfrost/pan_cmdstream.c @@ -340,18 +340,22 @@ panfrost_emit_blend(struct panfrost_batch *batch, void *rts, } #if PAN_ARCH >= 6 +#if PAN_ARCH <= 7 struct panfrost_compiled_shader *fs = ctx->prog[MESA_SHADER_FRAGMENT]; +#endif struct mali_internal_blend_packed *internal_blend_packed = (struct mali_internal_blend_packed *)&packed->opaque[2]; /* Words 2 and 3: Internal blend */ if (blend_shaders[i]) { +#if PAN_ARCH <= 7 /* The blend shader's address needs to be at * the same top 32 bit as the fragment shader. * TODO: Ensure that's always the case. */ assert(!fs->bin.bo || (blend_shaders[i] & (0xffffffffull << 32)) == (fs->bin.gpu & (0xffffffffull << 32))); +#endif pan_pack(internal_blend_packed, INTERNAL_BLEND, cfg) { cfg.mode = MALI_BLEND_MODE_SHADER;