From 9728b31e65afee625ead6d09f114b9f0c3409876 Mon Sep 17 00:00:00 2001 From: Job Noorman Date: Fri, 28 Feb 2025 12:57:24 +0100 Subject: [PATCH] ir3: clear instruction uses when cloned Clones do not share the uses of the cloned instruction. Signed-off-by: Job Noorman Part-of: --- src/freedreno/ir3/ir3.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/freedreno/ir3/ir3.c b/src/freedreno/ir3/ir3.c index 2061b850991..a750fbf86f0 100644 --- a/src/freedreno/ir3/ir3.c +++ b/src/freedreno/ir3/ir3.c @@ -842,6 +842,7 @@ ir3_instr_clone(struct ir3_instruction *instr) *new_instr = *instr; new_instr->dsts = dsts; new_instr->srcs = srcs; + new_instr->uses = NULL; list_inithead(&new_instr->rpt_node); insert_instr(ir3_before_terminator(instr->block), new_instr);