[Mesa-dev] [PATCH 1/4] nir: add inot algebraic opt
Jason Ekstrand
jason at jlekstrand.net
Mon Jul 16 04:03:41 UTC 2018
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
On Sun, Jul 15, 2018 at 4:26 PM Timothy Arceri <tarceri at itsqueeze.com>
wrote:
> 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
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180715/79a44479/attachment.html>
More information about the mesa-dev
mailing list