nir/algebraic: add option to lower fall_equalN/fany_nequalN
authorJonathan Marek <jonathan@marek.ca>
Sun, 2 Jun 2019 22:44:49 +0000 (18:44 -0400)
committerJonathan Marek <jonathan@marek.ca>
Wed, 24 Jul 2019 21:36:21 +0000 (17:36 -0400)
commit9be902097c72466f60d3178cc6ecaa578fb45d86
tree3f23c93965fd21a2cf4a7791db46305d58fc7247
parent397375d3f353ec5027cb883faf9eb831b48f76f3
nir/algebraic: add option to lower fall_equalN/fany_nequalN

Add generic lowerings for fall_equalN/fany_nequalN. These should be optimal
for vec4 backends that doesn't have any special instructions for it, as
long as they support saturate.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/compiler/nir/nir.h
src/compiler/nir/nir_opt_algebraic.py