From 3a16ab84e2f2ec78c85eae67f99a5fa4b4791a57 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: --- src/panfrost/bifrost/bi_ra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panfrost/bifrost/bi_ra.c b/src/panfrost/bifrost/bi_ra.c index 72b2d15..fff887d 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; -- 2.7.4