summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2014-04-03 14:00:32 -0700
committerMatt Turner <[email protected]>2014-04-05 09:47:36 -0700
commit7a7b8a02bed5a113fd0f8e45acc0eafdd7227b55 (patch)
treefe4fb1f9e3310b8feeb4222a5cb088a52b168885
parent86ae6f477d24169cbc27d53c57d5d024d73e4e4a (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.cpp3
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;