From f9bf1a95ecbd24e9f02a5e67f6959ccf08eba1d1 Mon Sep 17 00:00:00 2001 From: Erico Nunes Date: Mon, 26 Aug 2019 20:59:57 +0200 Subject: [PATCH] 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 --- src/gallium/drivers/lima/ir/pp/regalloc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/lima/ir/pp/regalloc.c b/src/gallium/drivers/lima/ir/pp/regalloc.c index dcefa1e6480..f6740c0ebb0 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); -- 2.30.2