diff options
author | Matt Turner <mattst88@gmail.com> | 2014-04-03 14:00:32 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2014-04-05 09:47:36 -0700 |
commit | 7a7b8a02bed5a113fd0f8e45acc0eafdd7227b55 (patch) | |
tree | fe4fb1f9e3310b8feeb4222a5cb088a52b168885 /src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp | |
parent | 86ae6f477d24169cbc27d53c57d5d024d73e4e4a (diff) | |
download | external_mesa3d-7a7b8a02bed5a113fd0f8e45acc0eafdd7227b55.zip external_mesa3d-7a7b8a02bed5a113fd0f8e45acc0eafdd7227b55.tar.gz external_mesa3d-7a7b8a02bed5a113fd0f8e45acc0eafdd7227b55.tar.bz2 |
i965/fs: Don't propagate saturate modifiers into partial writes.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp b/src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp index eaecb45..4f3dcff 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp @@ -59,7 +59,8 @@ opt_saturate_propagation_local(fs_visitor *v, bblock_t *block) if (scan_inst->dst.file == GRF && scan_inst->dst.reg == inst->src[0].reg && - scan_inst->dst.reg_offset == inst->src[0].reg_offset) { + scan_inst->dst.reg_offset == inst->src[0].reg_offset && + !scan_inst->is_partial_write()) { if (scan_inst->can_do_saturate()) { scan_inst->saturate = true; inst->saturate = false; |