Module: Mesa Branch: master Commit: 0dfec59a2785cf7a87ee5128889ecebe810b611b URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0dfec59a2785cf7a87ee5128889ecebe810b611b
Author: Andrey Sudnik <andrey.sud...@intel.com> Date: Thu Mar 5 11:16:49 2015 -0800 i965/vec4: Don't lose the saturate modifier in copy propagation. Cc: 10.4, 10.5 <mesa-sta...@lists.freedesktop.org> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89224 Reviewed-by: Matt Turner <matts...@gmail.com> Reviewed-by: Ian Romanick <ian.d.roman...@intel.com> --- src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp b/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp index 679867c..1f5e4f7 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp @@ -440,7 +440,7 @@ vec4_visitor::opt_copy_propagation(bool do_constant_prop) entries[reg].saturatemask = 0x0; for (int i = 0; i < 4; i++) { if (inst->dst.writemask & (1 << i)) { - entries[reg].value[i] = direct_copy ? &inst->src[0] : NULL; + entries[reg].value[i] = (!inst->saturate && direct_copy) ? &inst->src[0] : NULL; entries[reg].saturatemask |= (((inst->saturate && direct_copy) ? 1 : 0) << i); } } _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-commit