ir3: clear instruction uses when cloned

Clones do not share the uses of the cloned instruction.

Signed-off-by: Job Noorman <jnoorman@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33816>
This commit is contained in:
Job Noorman 2025-02-28 12:57:24 +01:00 committed by Marge Bot
parent 99a7dc3fc4
commit 9728b31e65

View file

@ -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);