mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-09 17:00:13 +01:00
i965/vec4: Don't lose the saturate modifier in copy propagation.
Cc: 10.4, 10.5 <mesa-stable@lists.freedesktop.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89224
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
(cherry picked from commit 0dfec59a27)
This commit is contained in:
parent
97b0219ed5
commit
d4a95ffcda
1 changed files with 1 additions and 1 deletions
|
|
@ -415,7 +415,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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue