From: Erico Nunes Date: Mon, 26 Aug 2019 18:59:57 +0000 (+0200) Subject: lima/ppir: mark regalloc created ssa unspillable X-Git-Tag: upstream/19.3.0~2206 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f9bf1a95ecbd24e9f02a5e67f6959ccf08eba1d1;p=platform%2Fupstream%2Fmesa.git lima/ppir: mark regalloc created ssa unspillable One ssa created in the spillinc code in ppir_update_spilled_src was not properly being marked 'spilled', which made it a candidate for future spilling attempts. Since it was being inserted by the spilling code itself, let's mark it unspillable to avoid an infinite spilling loop. Signed-off-by: Erico Nunes Reviewed-by: Vasily Khoruzhick --- diff --git a/src/gallium/drivers/lima/ir/pp/regalloc.c b/src/gallium/drivers/lima/ir/pp/regalloc.c index dcefa1e..f6740c0 100644 --- a/src/gallium/drivers/lima/ir/pp/regalloc.c +++ b/src/gallium/drivers/lima/ir/pp/regalloc.c @@ -298,6 +298,7 @@ static ppir_alu_node* ppir_update_spilled_src(ppir_compiler *comp, alu_dest->ssa.num_components = 4; alu_dest->ssa.live_in = INT_MAX; alu_dest->ssa.live_out = 0; + alu_dest->ssa.spilled = true; alu_dest->write_mask = 0xf; list_addtail(&alu_dest->ssa.list, &comp->reg_list);