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>
This commit is contained in:
Alyssa Rosenzweig 2021-01-08 14:12:38 -05:00 committed by Marge Bot
parent 92461a1133
commit 3a16ab84e2

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;