mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 23:50:11 +01: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>
This commit is contained in:
parent
a63960b7f3
commit
5eb39dd95f
1 changed files with 2 additions and 2 deletions
|
|
@ -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