summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>2021-01-08 14:11:39 -0500
committerDylan Baker <dylan.c.baker@intel.com>2021-01-20 09:22:16 -0800
commit98c1bf6d184a1e6d2402aac82f0a626649b98c2e (patch)
tree5fa850ad233538914e433fc25dcc1506443fadae
parenta6b63210e01ee60b9ba8d94960beac2afcd3daf2 (diff)
pan/bi: Fix printing of node 0
Fixes: 1893a3805e4 ("pan/bi: Generate instruction printer") Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8358> (cherry picked from commit a63960b7f3b7c8478402e65bdfb0c6e83e1539af)
-rw-r--r--.pick_status.json2
-rw-r--r--src/panfrost/bifrost/bi_printer.c.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/.pick_status.json b/.pick_status.json
index 5b75f95d9f6..974f2d65c22 100644
--- a/.pick_status.json
+++ b/.pick_status.json
@@ -148,7 +148,7 @@
"description": "pan/bi: Fix printing of node 0",
"nominated": true,
"nomination_type": 1,
- "resolution": 0,
+ "resolution": 1,
"master_sha": null,
"because_sha": "1893a3805e4189ebdcd957d71941c855cf12f8b6"
},
diff --git a/src/panfrost/bifrost/bi_printer.c.py b/src/panfrost/bifrost/bi_printer.c.py
index 542e48c1f88..7b7005688b7 100644
--- a/src/panfrost/bifrost/bi_printer.c.py
+++ b/src/panfrost/bifrost/bi_printer.c.py
@@ -88,7 +88,7 @@ bi_print_index(FILE *fp, bi_index index)
else if (index.type == BI_INDEX_NORMAL && index.reg)
fprintf(fp, "r%u", index.value);
else if (index.type == BI_INDEX_NORMAL)
- fprintf(fp, "%u", index.value - 1);
+ fprintf(fp, "%u", index.value);
else
unreachable("Invalid index");