diff options
author | Francisco Jerez <[email protected]> | 2016-05-19 21:12:32 -0700 |
---|---|---|
committer | Francisco Jerez <[email protected]> | 2016-05-27 23:29:05 -0700 |
commit | 51dd6a60f5ef43a12d1b4384a2aded4d55d14056 (patch) | |
tree | 315f8a8d715737a01ebfb6cf59a0703e64efccbe | |
parent | b9eab911baa380fea1a3d3393f5944c00aa63076 (diff) |
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 <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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; |