i965/fs: Take into account copy register offset during compute-to-mrf.

This was dropping 'inst->dst.offset' on the floor.  Nothing in the
code above seems to guarantee that it's zero and in that case the
offset of the register being coalesced into wouldn't be taken into
account while rewriting the generating instruction.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
This commit is contained in:
Francisco Jerez
2016-09-03 13:04:23 -07:00
parent fcd9d1badc
commit cd0134072a
+1 -1
View File
@@ -2821,7 +2821,7 @@ fs_visitor::compute_to_mrf()
}
scan_inst->dst.file = MRF;
scan_inst->dst.offset %= REG_SIZE;
scan_inst->dst.offset = inst->dst.offset + scan_inst->dst.offset % REG_SIZE;
scan_inst->saturate |= inst->saturate;
if (!regs_left)
break;