mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
pan/bi: Allow spilling with multiple destinations
Now that we fixed this. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9164>
This commit is contained in:
parent
8cbded63fb
commit
c4ed4cbf14
1 changed files with 3 additions and 3 deletions
|
|
@ -236,9 +236,9 @@ bi_choose_spill_node(bi_context *ctx, struct lcra_state *l)
|
|||
/* Pick a node satisfying bi_spill_register's preconditions */
|
||||
|
||||
bi_foreach_instr_global(ctx, ins) {
|
||||
if (ins->no_spill || ins->dest[0].offset || !bi_is_null(ins->dest[1])) {
|
||||
for (unsigned d = 0; d < ARRAY_SIZE(ins->dest); ++d)
|
||||
lcra_set_node_spill_cost(l, bi_get_node(ins->dest[0]), -1);
|
||||
bi_foreach_dest(ins, d) {
|
||||
if (ins->no_spill || ins->dest[d].offset)
|
||||
lcra_set_node_spill_cost(l, bi_get_node(ins->dest[d]), -1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue