From 7a7b8a02bed5a113fd0f8e45acc0eafdd7227b55 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Thu, 3 Apr 2014 14:00:32 -0700 Subject: [PATCH] i965/fs: Don't propagate saturate modifiers into partial writes. Reviewed-by: Ian Romanick --- src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.30.2