diff options
author | Francisco Jerez <currojerez@riseup.net> | 2016-09-03 13:04:23 -0700 |
---|---|---|
committer | Francisco Jerez <currojerez@riseup.net> | 2016-09-14 14:50:56 -0700 |
commit | cd0134072a7e088cf1ebcf1c4250aa13ac8a5c59 (patch) | |
tree | 8c7d47acd79438381be2ecff8253cb6b8f7f6371 /src/mesa/drivers/dri/i965/brw_fs.cpp | |
parent | fcd9d1badcd97486eea5d87bf701a3b0a16b4ba9 (diff) | |
download | external_mesa3d-cd0134072a7e088cf1ebcf1c4250aa13ac8a5c59.zip external_mesa3d-cd0134072a7e088cf1ebcf1c4250aa13ac8a5c59.tar.gz external_mesa3d-cd0134072a7e088cf1ebcf1c4250aa13ac8a5c59.tar.bz2 |
i965/fs: Take into account copy register offset during compute-to-mrf.
This was dropping 'inst->dst.offset' on the floor. Nothing in the
code above seems to guarantee that it's zero and in that case the
offset of the register being coalesced into wouldn't be taken into
account while rewriting the generating instruction.
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index a52e5a3..ee19666 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -2821,7 +2821,7 @@ fs_visitor::compute_to_mrf() } scan_inst->dst.file = MRF; - scan_inst->dst.offset %= REG_SIZE; + scan_inst->dst.offset = inst->dst.offset + scan_inst->dst.offset % REG_SIZE; scan_inst->saturate |= inst->saturate; if (!regs_left) break; |