mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
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:
parent
99a7dc3fc4
commit
9728b31e65
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue