nir: Add simplistic lowering for bany_equal/ball_inequal.
authorEric Anholt <eric@anholt.net>
Sat, 4 Jan 2020 00:33:54 +0000 (16:33 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 2 Sep 2020 16:58:44 +0000 (09:58 -0700)
commit479d9c97eb2c85b7df81f39281867c5559aa0bba
treef5ea4df9c10f88af25f720b74ddcdcdd7fe391a1
parent9ed33383a5b1399315cd62f119234ee2332ee76f
nir: Add simplistic lowering for bany_equal/ball_inequal.

It would be nice if we could do swizzling of an expression on the
replacement side so that we could have a single ieq/ine of the vector
after CSE.  However, if you do want vector operations, nir_opt_vectorize()
does just fine.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6567>
src/compiler/nir/nir.h
src/compiler/nir/nir_opt_algebraic.py