pan/bi: Iterate from zero when setting RA interference

It is now valid for a node to have an index of zero.

Fixes: 39aa8c4a5a ("pan/bi: Switch to new IR")
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8358>
(cherry picked from commit 5eb39dd95f)
This commit is contained in:
Icecream95 2021-01-14 14:44:48 +13:00 committed by Dylan Baker
parent 98c1bf6d18
commit d64870e874
2 changed files with 3 additions and 3 deletions

View file

@ -139,7 +139,7 @@
"description": "pan/bi: Iterate from zero when setting RA interference",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"master_sha": null,
"because_sha": "39aa8c4a5ac9243348b552d9055a926b77d98c29"
},

View file

@ -48,7 +48,7 @@ bi_compute_interference(bi_context *ctx, struct lcra_state *l)
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]);
}
@ -57,7 +57,7 @@ bi_compute_interference(bi_context *ctx, struct lcra_state *l)
if (!ctx->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;