i965/fs: Reset reg_offset of the original destination to zero in compute_to_mrf().
authorFrancisco Jerez <currojerez@riseup.net>
Fri, 20 May 2016 04:12:32 +0000 (21:12 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Sat, 28 May 2016 06:29:05 +0000 (23:29 -0700)
Prevents an assertion failure in the following commit.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_fs.cpp

index 34ebdc4bb8d0c55b7ea33a3e4bfa37fc72bc27c8..842af0172df7b1b93f17560108869bcb0f0098fc 100644 (file)
@@ -2866,6 +2866,7 @@ fs_visitor::compute_to_mrf()
               /* Found the creator of our MRF's source value. */
               scan_inst->dst.file = MRF;
                scan_inst->dst.nr = inst->dst.nr;
+               scan_inst->dst.reg_offset = 0;
               scan_inst->saturate |= inst->saturate;
               inst->remove(block);
               progress = true;