Mesa (staging/21.0): pan/bi: Fix RA of node 0

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jan 20 17:22:36 UTC 2021


Module: Mesa
Branch: staging/21.0
Commit: a6b63210e01ee60b9ba8d94960beac2afcd3daf2
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a6b63210e01ee60b9ba8d94960beac2afcd3daf2

Author: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Date:   Fri Jan  8 14:12:38 2021 -0500

pan/bi: Fix RA of node 0

Fixes: 39aa8c4a5ac ("pan/bi: Switch to new IR")
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8358>
(cherry picked from commit 3a16ab84e2f2ec78c85eae67f99a5fa4b4791a57)

---

 .pick_status.json            | 2 +-
 src/panfrost/bifrost/bi_ra.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.pick_status.json b/.pick_status.json
index dbac1051ee0..5b75f95d9f6 100644
--- a/.pick_status.json
+++ b/.pick_status.json
@@ -157,7 +157,7 @@
         "description": "pan/bi: Fix RA of node 0",
         "nominated": true,
         "nomination_type": 1,
-        "resolution": 0,
+        "resolution": 1,
         "master_sha": null,
         "because_sha": "39aa8c4a5ac9243348b552d9055a926b77d98c29"
     },
diff --git a/src/panfrost/bifrost/bi_ra.c b/src/panfrost/bifrost/bi_ra.c
index c7c2003bfd3..62dff967d3e 100644
--- a/src/panfrost/bifrost/bi_ra.c
+++ b/src/panfrost/bifrost/bi_ra.c
@@ -116,7 +116,7 @@ bi_allocate_registers(bi_context *ctx, bool *success)
                         l->solutions[node] = 0;
                 }
 
-                if (!dest || (dest >= node_count))
+                if (dest >= node_count)
                         continue;
 
                 l->class[dest] = BI_REG_CLASS_WORK;



More information about the mesa-commit mailing list