mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
aco: handle missing second predecessors at merge block phis
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
CC: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3658>
(cherry picked from commit f2c4878de9)
This commit is contained in:
parent
cb7517be47
commit
275e939299
2 changed files with 5 additions and 1 deletions
|
|
@ -499,7 +499,7 @@
|
|||
"description": "aco: handle missing second predecessors at merge block phis",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -7685,6 +7685,10 @@ void visit_phi(isel_context *ctx, nir_phi_instr *instr)
|
|||
continue;
|
||||
}
|
||||
}
|
||||
/* Handle missing predecessors at the end. This shouldn't happen with loop
|
||||
* headers and we can't ignore these sources for loop header phis. */
|
||||
if (!(ctx->block->kind & block_kind_loop_header) && cur_pred_idx >= preds.size())
|
||||
continue;
|
||||
cur_pred_idx++;
|
||||
Operand op = get_phi_operand(ctx, src.second);
|
||||
operands[num_operands++] = op;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue