From 69f11f9e262c5ad37fa17da3f289493d3d18cccf Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 16 Feb 2021 10:46:19 -0500 Subject: [PATCH] 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: --- src/panfrost/bifrost/bi_ra.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/panfrost/bifrost/bi_ra.c b/src/panfrost/bifrost/bi_ra.c index fb3f38f..eb77e35 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; -- 2.7.4