diff options
author | Matt Turner <[email protected]> | 2014-04-03 14:00:32 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2014-04-05 09:47:36 -0700 |
commit | 7a7b8a02bed5a113fd0f8e45acc0eafdd7227b55 (patch) | |
tree | fe4fb1f9e3310b8feeb4222a5cb088a52b168885 | |
parent | 86ae6f477d24169cbc27d53c57d5d024d73e4e4a (diff) |
i965/fs: Don't propagate saturate modifiers into partial writes.
Reviewed-by: Ian Romanick <[email protected]>
-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 eaecb459deb..4f3dcff500e 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; |