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 6769310..da819b7 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp @@ -414,7 +414,7 @@ vec4_visitor::opt_copy_propagation() 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); } }