mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 08:10:09 +01:00
Revert "i965/vec4: Don't lose the saturate modifier in copy propagation."
This reverts commit 0dfec59a27. 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>
This commit is contained in:
parent
21c829e5cc
commit
a3733defbe
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue