From: Alyssa Rosenzweig Date: Fri, 6 Dec 2019 20:28:08 +0000 (-0500) Subject: pan/midgard: Don't use no_spill for memory spill src X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8c79467a0d4d1c605bb93cbed844330f2fd4cbeb;p=mesa.git pan/midgard: Don't use no_spill for memory spill src I'm not totally sure why this would *break* things, but it's certainly not necessary and it does break things. Somehow this gives the RA more freedom, fixing some spill issues. Signed-off-by: Alyssa Rosenzweig --- diff --git a/src/panfrost/midgard/midgard_ra.c b/src/panfrost/midgard/midgard_ra.c index 9749ebb9ceb..2fe406d6e7a 100644 --- a/src/panfrost/midgard/midgard_ra.c +++ b/src/panfrost/midgard/midgard_ra.c @@ -691,8 +691,10 @@ mir_choose_spill_node( if (ins->no_spill & (1 << l->spill_class)) { lcra_set_node_spill_cost(l, ins->dest, -1); - mir_foreach_src(ins, s) - lcra_set_node_spill_cost(l, ins->src[s], -1); + if (l->spill_class != REG_CLASS_WORK) { + mir_foreach_src(ins, s) + lcra_set_node_spill_cost(l, ins->src[s], -1); + } } }