mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 13:10:10 +01:00
intel/compiler: Only GE and L modifiers are commutative for SEL
Reviewed-by: Matt Turner <mattst88@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4582>
This commit is contained in:
parent
a80e44902f
commit
5afaa407c1
1 changed files with 5 additions and 1 deletions
|
|
@ -823,7 +823,11 @@ fs_visitor::try_constant_propagate(fs_inst *inst, acp_entry *entry)
|
|||
if (i == 1) {
|
||||
inst->src[i] = val;
|
||||
progress = true;
|
||||
} else if (i == 0 && inst->src[1].file != IMM) {
|
||||
} else if (i == 0 && inst->src[1].file != IMM &&
|
||||
(inst->conditional_mod == BRW_CONDITIONAL_NONE ||
|
||||
/* Only GE and L are commutative. */
|
||||
inst->conditional_mod == BRW_CONDITIONAL_GE ||
|
||||
inst->conditional_mod == BRW_CONDITIONAL_L)) {
|
||||
inst->src[0] = inst->src[1];
|
||||
inst->src[1] = val;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue