pan/bi: Fix RA of node 0

Fixes: 39aa8c4a5a ("pan/bi: Switch to new IR")
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8358>
(cherry picked from commit 3a16ab84e2)
This commit is contained in:
Alyssa Rosenzweig 2021-01-08 14:12:38 -05:00 committed by Dylan Baker
parent 080c433715
commit a6b63210e0
2 changed files with 2 additions and 2 deletions

View file

@ -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"
},

View file

@ -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;