[Mesa-dev] [PATCH 1/4] nir: add inot algebraic opt
Timothy Arceri
tarceri at itsqueeze.com
Sun Jul 15 23:26:32 UTC 2018
Noticed in a unigine shader.
---
src/compiler/nir/nir_opt_algebraic.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/compiler/nir/nir_opt_algebraic.py b/src/compiler/nir/nir_opt_algebraic.py
index 5e07d662b07..0986dde6851 100644
--- a/src/compiler/nir/nir_opt_algebraic.py
+++ b/src/compiler/nir/nir_opt_algebraic.py
@@ -223,6 +223,7 @@ optimizations = [
(('bcsel', ('inot', a), b, c), ('bcsel', a, c, b)),
(('bcsel', a, ('bcsel', a, b, c), d), ('bcsel', a, b, d)),
(('bcsel', a, True, 'b at bool'), ('ior', a, b)),
+ (('inot', ('bcsel', a, ('inot', b), c)), ('bcsel', a, b, ('inot', c))),
(('fmin', a, a), a),
(('fmax', a, a), a),
(('imin', a, a), a),
--
2.17.1
More information about the mesa-dev
mailing list