pan/genxml: Fix inverted logic on nr_regs
v10 have 96 and v12+ have 128, not the opposite.
Fixes: 811525b543 ("pan/genxml: Build libpanfrost_decode for v12")
Signed-off-by: Mary Guillemard <mary.guillemard@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34815>
This commit is contained in:
committed by
Marge Bot
parent
1aa5fd5da2
commit
8447f7aaae
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user