nir,intel: lower if (cond) demote() to new intrinsic demote_if(cond)
authorDaniel Schürmann <daniel@schuermann.dev>
Thu, 18 Jul 2019 11:39:49 +0000 (13:39 +0200)
committerJason Ekstrand <jason@jlekstrand.net>
Wed, 24 Jul 2019 18:02:18 +0000 (13:02 -0500)
commite272fdd508f844f6545827273b3cf2f109759a6d
tree9fd5aea1f0f1e49ded60d094001c8a779b3f3ed2
parent517005b4cf376b292f61d786d419e2a611e4a02a
nir,intel: lower if (cond) demote() to new intrinsic demote_if(cond)

This will effectively enable the optimization in anv.

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir_gather_info.c
src/compiler/nir/nir_intrinsics.py
src/compiler/nir/nir_opt_conditional_discard.c
src/compiler/nir/nir_opt_constant_folding.c
src/intel/compiler/brw_fs_nir.cpp