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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user