[Mesa-dev] [PATCH 13/24] i965/fs: Reset reg_offset of the original destination to zero in compute_to_mrf().

Francisco Jerez currojerez at riseup.net
Fri May 27 03:46:18 UTC 2016


Prevents an assertion failure in the following commit.
---
 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 6d541bf..844b4f0 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -2884,6 +2884,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.7.3



More information about the mesa-dev mailing list