summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2019-06-07 16:04:25 +0100
committerEric Engestrom <[email protected]>2019-06-07 16:06:25 +0100
commit440fe0eb4302d30651f1e870e674d23de530d868 (patch)
treebfd00a4d58f964e78ffc7cc26029e01f9bd71209 /src
parentb9bbac62340d853b1b8aaaf418267e341fb9b45e (diff)
nir: fix s/&&/||/ typo
Fixes: cd73b6174b093b75f581 "nir/lower_to_source_mods: Stop turning add, sat, and neg into mov" Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/compiler/nir/nir_lower_to_source_mods.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_lower_to_source_mods.c b/src/compiler/nir/nir_lower_to_source_mods.c
index c4ba604b32e..f3d004ccdd2 100644
--- a/src/compiler/nir/nir_lower_to_source_mods.c
+++ b/src/compiler/nir/nir_lower_to_source_mods.c
@@ -98,7 +98,7 @@ nir_lower_to_source_mods_block(nir_block *block,
if (!parent->src[0].src.is_ssa)
continue;
- if (!lower_abs && (parent->op == nir_op_fabs &&
+ if (!lower_abs && (parent->op == nir_op_fabs ||
parent->op == nir_op_iabs))
continue;