mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
intel/fs/ra: Only add dest interference to sources that exist
Fixes:83dedb6354"i965: Add src/dst interference for certain" Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> (cherry picked from commit88cac12230)
This commit is contained in:
parent
c03d9a7fa9
commit
8cf49e1662
1 changed files with 1 additions and 1 deletions
|
|
@ -591,7 +591,7 @@ fs_visitor::assign_regs(bool allow_spilling, bool spill_all)
|
|||
*/
|
||||
foreach_block_and_inst(block, fs_inst, inst, cfg) {
|
||||
if (inst->dst.file == VGRF && inst->has_source_and_destination_hazard()) {
|
||||
for (unsigned i = 0; i < 3; i++) {
|
||||
for (unsigned i = 0; i < inst->sources; i++) {
|
||||
if (inst->src[i].file == VGRF) {
|
||||
ra_add_node_interference(g, inst->dst.nr, inst->src[i].nr);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue