summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2015-03-18 15:39:03 +0200
committerFrancisco Jerez <currojerez@riseup.net>2015-03-23 14:09:33 +0200
commita3733defbe4f87acd1b6dca716b861f2dfaea05a (patch)
tree494f073bebc4241292a9772e20bae2c053196de3 /src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp
parent21c829e5cc6fefa5a42550e9043fade3e9e54e64 (diff)
downloadexternal_mesa3d-a3733defbe4f87acd1b6dca716b861f2dfaea05a.zip
external_mesa3d-a3733defbe4f87acd1b6dca716b861f2dfaea05a.tar.gz
external_mesa3d-a3733defbe4f87acd1b6dca716b861f2dfaea05a.tar.bz2
Revert "i965/vec4: Don't lose the saturate modifier in copy propagation."
This reverts commit 0dfec59a2785cf7a87ee5128889ecebe810b611b. The change prevented propagation of copies with the saturate flag set, making the whole saturate mask tracking completely useless. A proper fix follows. Reviewed-by: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp2
1 files changed, 1 insertions, 1 deletions
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 ea1732d..036706c 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] = (!inst->saturate && direct_copy) ? &inst->src[0] : NULL;
+ entries[reg].value[i] = direct_copy ? &inst->src[0] : NULL;
entries[reg].saturatemask |= (((inst->saturate && direct_copy) ? 1 : 0) << i);
}
}