From 51dd6a60f5ef43a12d1b4384a2aded4d55d14056 Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Thu, 19 May 2016 21:12:32 -0700 Subject: [PATCH] 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 --- src/mesa/drivers/dri/i965/brw_fs.cpp | 1 + 1 file changed, 1 insertion(+) 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; -- 2.30.2