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>
(cherry picked from commit 8447f7aaae41ce88587aedb77acafb571a6763b8)
This commit is contained in:

committed by
Eric Engestrom

parent
867fb6756b
commit
8d2520cf95
@@ -384,7 +384,7 @@
|
|||||||
"description": "pan/genxml: Fix inverted logic on nr_regs",
|
"description": "pan/genxml: Fix inverted logic on nr_regs",
|
||||||
"nominated": true,
|
"nominated": true,
|
||||||
"nomination_type": 2,
|
"nomination_type": 2,
|
||||||
"resolution": 0,
|
"resolution": 1,
|
||||||
"main_sha": null,
|
"main_sha": null,
|
||||||
"because_sha": "811525b543b5a0581af9bb4b17bb92edbde6fe0a",
|
"because_sha": "811525b543b5a0581af9bb4b17bb92edbde6fe0a",
|
||||||
"notes": null
|
"notes": null
|
||||||
|
@@ -1669,7 +1669,7 @@ GENX(pandecode_interpret_cs)(struct pandecode_context *ctx, uint64_t queue,
|
|||||||
|
|
||||||
/* v10 has 96 registers. v12+ have 128. */
|
/* v10 has 96 registers. v12+ have 128. */
|
||||||
struct queue_ctx qctx = {
|
struct queue_ctx qctx = {
|
||||||
.nr_regs = PAN_ARCH >= 12 ? 96 : 128,
|
.nr_regs = PAN_ARCH >= 12 ? 128 : 96,
|
||||||
.regs = regs,
|
.regs = regs,
|
||||||
.ip = cs,
|
.ip = cs,
|
||||||
.end = cs + (size / 8),
|
.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. */
|
/* v10 has 96 registers. v12+ have 128. */
|
||||||
struct queue_ctx qctx = {
|
struct queue_ctx qctx = {
|
||||||
.nr_regs = PAN_ARCH >= 12 ? 96 : 128,
|
.nr_regs = PAN_ARCH >= 12 ? 128 : 96,
|
||||||
.regs = regs,
|
.regs = regs,
|
||||||
.ip = instr,
|
.ip = instr,
|
||||||
.end = instr + 1,
|
.end = instr + 1,
|
||||||
|
Reference in New Issue
Block a user