From a6b63210e01ee60b9ba8d94960beac2afcd3daf2 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 8 Jan 2021 14:12:38 -0500 Subject: [PATCH] pan/bi: Fix RA of node 0 Fixes: 39aa8c4a5ac ("pan/bi: Switch to new IR") Signed-off-by: Alyssa Rosenzweig Part-of: (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;