nir/builder: Add bany_inequal and bany helpers.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 17 Aug 2016 12:03:29 +0000 (05:03 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 18 Aug 2016 07:46:04 +0000 (00:46 -0700)
commitd8971128accc84db04becf820b66e455d5d7534c
treed7fe8d50a4fac8b82761744bb230957acc81208f
parent01e99cba043084be7477e3a801029bfee581ab87
nir/builder: Add bany_inequal and bany helpers.

The first simply picks the bany_inequal[234] opcodes based on the SSA
def's number of components.  The latter implicitly compares with zero
to achieve the same semantics of GLSL's any().

Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
src/compiler/nir/nir_builder.h