mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 19:30:11 +01:00
i965: Don't copy propagate constants from sources with saturate
We don't propagate the saturate bit and some instructions can't saturate at all. If the source has saturate set, just skip propagation. Signed-off-by: Kristian Høgsberg <krh@bitplanet.net> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
47aaabda47
commit
840e8fc920
1 changed files with 2 additions and 0 deletions
|
|
@ -425,6 +425,8 @@ fs_visitor::try_constant_propagate(fs_inst *inst, acp_entry *entry)
|
|||
|
||||
if (entry->src.file != IMM)
|
||||
return false;
|
||||
if (entry->saturate)
|
||||
return false;
|
||||
|
||||
for (int i = inst->sources - 1; i >= 0; i--) {
|
||||
if (inst->src[i].file != GRF)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue