<div dir="ltr">Reviewed-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br></div><br><div class="gmail_quote"><div dir="ltr">On Sun, Jul 15, 2018 at 4:26 PM Timothy Arceri <<a href="mailto:tarceri@itsqueeze.com">tarceri@itsqueeze.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Noticed in a unigine shader.<br>
---<br>
 src/compiler/nir/nir_opt_algebraic.py | 1 +<br>
 1 file changed, 1 insertion(+)<br>
<br>
diff --git a/src/compiler/nir/nir_opt_algebraic.py b/src/compiler/nir/nir_opt_algebraic.py<br>
index 5e07d662b07..0986dde6851 100644<br>
--- a/src/compiler/nir/nir_opt_algebraic.py<br>
+++ b/src/compiler/nir/nir_opt_algebraic.py<br>
@@ -223,6 +223,7 @@ optimizations = [<br>
    (('bcsel', ('inot', a), b, c), ('bcsel', a, c, b)),<br>
    (('bcsel', a, ('bcsel', a, b, c), d), ('bcsel', a, b, d)),<br>
    (('bcsel', a, True, 'b@bool'), ('ior', a, b)),<br>
+   (('inot', ('bcsel', a, ('inot', b), c)), ('bcsel', a, b, ('inot', c))),<br>
    (('fmin', a, a), a),<br>
    (('fmax', a, a), a),<br>
    (('imin', a, a), a),<br>
-- <br>
2.17.1<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org" target="_blank">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</blockquote></div>