nir: Add demote and is_helper_invocation intrinsics
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Sat, 8 Jun 2019 00:29:05 +0000 (17:29 -0700)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Mon, 8 Jul 2019 15:57:25 +0000 (08:57 -0700)
commita42e8f0ed1d1aa1b38282be28e4f55e246b55685
tree054b723e5dd7764d93040d1898212bc19f96c339
parent9b116173b6a5e96c54ef3962546aabd505e00cfb
nir: Add demote and is_helper_invocation intrinsics

From SPV_EXT_demote_to_helper_invocation.  Demote will be implemented
as a variant of discard, so mark uses_discard if it is used.

v2: Add CAN_ELIMINATE flag to the new intrinsic.  (Jason)

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir_gather_info.c
src/compiler/nir/nir_intrinsics.py