mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-20 04:48:07 +02:00
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 commit5eb39dd95f)
This commit is contained in:
parent
98c1bf6d18
commit
d64870e874
2 changed files with 3 additions and 3 deletions
|
|
@ -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"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue