[Mesa-dev] [PATCH 2/5] i965/vec4: Don't lose copy propagation saturate bits for not written components.
Francisco Jerez
currojerez at riseup.net
Fri Mar 20 07:16:14 PDT 2015
---
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 8537fdd..653700e 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp
@@ -438,7 +438,7 @@ vec4_visitor::opt_copy_propagation(bool do_constant_prop)
* the new value, so clear it.
*/
bool direct_copy = is_direct_copy(inst);
- entries[reg].saturatemask = 0x0;
+ entries[reg].saturatemask &= ~inst->dst.writemask;
for (int i = 0; i < 4; i++) {
if (inst->dst.writemask & (1 << i)) {
entries[reg].value[i] = direct_copy ? &inst->src[0] : NULL;
--
2.1.3
More information about the mesa-dev
mailing list