diff --git a/src/freedreno/ir3/ir3.c b/src/freedreno/ir3/ir3.c index 766a7adec7b..162a393110e 100644 --- a/src/freedreno/ir3/ir3.c +++ b/src/freedreno/ir3/ir3.c @@ -493,6 +493,11 @@ ir3_instr_clone(struct ir3_instruction *instr) *new_reg = *reg; } + if (instr->address) { + assert(instr->srcs_count > 0); + new_instr->address = new_instr->srcs[instr->srcs_count - 1]; + } + return new_instr; }