nir: fix s/&&/||/ typo
authorEric Engestrom <eric.engestrom@intel.com>
Fri, 7 Jun 2019 15:04:25 +0000 (16:04 +0100)
committerEric Engestrom <eric.engestrom@intel.com>
Fri, 7 Jun 2019 15:06:25 +0000 (16:06 +0100)
Fixes: cd73b6174b093b75f581 "nir/lower_to_source_mods: Stop turning add, sat, and neg into mov"
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir_lower_to_source_mods.c

index c4ba604b32e05270d16e6fa6027a6c620ced8250..f3d004ccdd2c2ff32f268fa107ab1273c083bc7c 100644 (file)
@@ -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;