From: Francisco Jerez Date: Fri, 20 May 2016 04:12:32 +0000 (-0700) Subject: i965/fs: Reset reg_offset of the original destination to zero in compute_to_mrf(). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=51dd6a60f5ef43a12d1b4384a2aded4d55d14056;p=mesa.git i965/fs: Reset reg_offset of the original destination to zero in compute_to_mrf(). Prevents an assertion failure in the following commit. Reviewed-by: Jason Ekstrand --- diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 34ebdc4bb8d..842af0172df 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -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;