pan/bi: Fix RA of node 0 again
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 16 Feb 2021 15:46:19 +0000 (10:46 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 18 Feb 2021 21:48:22 +0000 (21:48 +0000)
Botched rebase.

Fixes: c578ca73939 ("pan/bi: Add interference per clause")
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9105>

src/panfrost/bifrost/bi_ra.c

index fb3f38f..eb77e35 100644 (file)
@@ -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;