From 8447f7aaae41ce88587aedb77acafb571a6763b8 Mon Sep 17 00:00:00 2001 From: Mary Guillemard Date: Mon, 5 May 2025 14:52:20 +0200 Subject: [PATCH] pan/genxml: Fix inverted logic on nr_regs v10 have 96 and v12+ have 128, not the opposite. Fixes: 811525b543b5 ("pan/genxml: Build libpanfrost_decode for v12") Signed-off-by: Mary Guillemard Reviewed-by: Boris Brezillon Part-of: --- src/panfrost/lib/genxml/decode_csf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/panfrost/lib/genxml/decode_csf.c b/src/panfrost/lib/genxml/decode_csf.c index 185382d3d64..c42edcc6054 100644 --- a/src/panfrost/lib/genxml/decode_csf.c +++ b/src/panfrost/lib/genxml/decode_csf.c @@ -1669,7 +1669,7 @@ GENX(pandecode_interpret_cs)(struct pandecode_context *ctx, uint64_t queue, /* v10 has 96 registers. v12+ have 128. */ struct queue_ctx qctx = { - .nr_regs = PAN_ARCH >= 12 ? 96 : 128, + .nr_regs = PAN_ARCH >= 12 ? 128 : 96, .regs = regs, .ip = cs, .end = cs + (size / 8), @@ -2484,7 +2484,7 @@ GENX(pandecode_cs_trace)(struct pandecode_context *ctx, uint64_t trace, /* v10 has 96 registers. v12+ have 128. */ struct queue_ctx qctx = { - .nr_regs = PAN_ARCH >= 12 ? 96 : 128, + .nr_regs = PAN_ARCH >= 12 ? 128 : 96, .regs = regs, .ip = instr, .end = instr + 1,