Mesa (master): nir: fix s/&&/||/ typo
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Jun 7 15:19:54 UTC 2019
Module: Mesa
Branch: master
Commit: 440fe0eb4302d30651f1e870e674d23de530d868
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=440fe0eb4302d30651f1e870e674d23de530d868
Author: Eric Engestrom <eric.engestrom at intel.com>
Date: Fri Jun 7 16:04:25 2019 +0100
nir: fix s/&&/||/ typo
Fixes: cd73b6174b093b75f581 "nir/lower_to_source_mods: Stop turning add, sat, and neg into mov"
Signed-off-by: Eric Engestrom <eric.engestrom at intel.com>
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
---
src/compiler/nir/nir_lower_to_source_mods.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
More information about the mesa-commit
mailing list