pan/bi: Fix RA of node 0 again

Botched rebase.

Fixes: c578ca7393 ("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>
This commit is contained in:
Alyssa Rosenzweig 2021-02-16 10:46:19 -05:00 committed by Marge Bot
parent 88ede65be8
commit 69f11f9e26
1 changed files with 2 additions and 2 deletions

View 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;