amd/llvm: implement nir_intrinsic_demote(_if) and nir_intrinsic_is_helper_invocation
authorDaniel Schürmann <daniel@schuermann.dev>
Wed, 4 Mar 2020 15:48:44 +0000 (16:48 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 9 Mar 2020 12:29:32 +0000 (12:29 +0000)
commitde57ea2a3da2188e1c1d9fb043028c5f823cc755
treed13e37252323749c116e8ba74a8a4ce5a595f025
parentce87da71e93d9eea7e9a2667e3273cab9c97667f
amd/llvm: implement nir_intrinsic_demote(_if) and nir_intrinsic_is_helper_invocation

The current implementation uses a temporary helper variable
to ensure correct behavior until LLVM provides an intrinsic.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4047>
src/amd/llvm/ac_llvm_build.c
src/amd/llvm/ac_llvm_build.h
src/amd/llvm/ac_nir_to_llvm.c