nir: Introduce nir_intrinsic_discard_if.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 24 Feb 2015 07:47:00 +0000 (23:47 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 24 Feb 2015 23:24:52 +0000 (15:24 -0800)
commit8e62bd52f8296a220bd4542abd6fdcdfc41a388c
treed1133977b722131519b6a08b311f7a3febea24f6
parent23d42b46e306d4104e534842f6dec3500d331cae
nir: Introduce nir_intrinsic_discard_if.

This is a conditional discard, which takes a boolean source.

Note that we don't generate ir_discard::condition today, so this
shouldn't break drivers (since none implement this intrinsic yet).

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/glsl/nir/glsl_to_nir.cpp
src/glsl/nir/nir_intrinsics.h