We need to invalidate the live intervals when inserting new
instructions.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Cc: mesa-stable@lists.freedesktop.org
if (brw->gen != 4 || brw->is_g4x)
return;
+ bool progress = false;
+
/* Note that we're done with register allocation, so GRF fs_regs always
* have a .reg_offset of 0.
*/
if (inst->mlen != 0 && inst->dst.file == GRF) {
insert_gen4_pre_send_dependency_workarounds(inst);
insert_gen4_post_send_dependency_workarounds(inst);
+ progress = true;
}
}
+
+ if (progress)
+ invalidate_live_intervals();
}
/**