From: Alyssa Rosenzweig Date: Tue, 16 Feb 2021 15:46:19 +0000 (-0500) Subject: pan/bi: Fix RA of node 0 again X-Git-Tag: upstream/21.2.3~7634 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=69f11f9e262c5ad37fa17da3f289493d3d18cccf;p=platform%2Fupstream%2Fmesa.git pan/bi: Fix RA of node 0 again Botched rebase. Fixes: c578ca73939 ("pan/bi: Add interference per clause") Signed-off-by: Alyssa Rosenzweig Part-of: --- diff --git a/src/panfrost/bifrost/bi_ra.c b/src/panfrost/bifrost/bi_ra.c index fb3f38f99f6..eb77e3583c3 100644 --- a/src/panfrost/bifrost/bi_ra.c +++ b/src/panfrost/bifrost/bi_ra.c @@ -63,7 +63,7 @@ bi_mark_interference(bi_block *block, bi_clause *clause, struct lcra_state *l, u if (bi_get_node(ins->dest[d]) >= node_count) continue; - for (unsigned i = 1; i < node_count; ++i) { + for (unsigned i = 0; i < node_count; ++i) { if (live[i]) { lcra_add_node_interference(l, bi_get_node(ins->dest[d]), bi_writemask(ins), i, live[i]); @@ -74,7 +74,7 @@ bi_mark_interference(bi_block *block, bi_clause *clause, struct lcra_state *l, u if (!is_blend && ins->op == BI_OPCODE_BLEND) { /* Add blend shader interference: blend shaders might * clobber r0-r15. */ - for (unsigned i = 1; i < node_count; ++i) { + for (unsigned i = 0; i < node_count; ++i) { if (!live[i]) continue;