ac/llvm: fix 64-bit fmed3
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 26 Feb 2020 14:04:38 +0000 (15:04 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 27 Feb 2020 07:04:28 +0000 (08:04 +0100)
commit50b8c2527464dbe18a01ab6412de4465cebf2225
tree11935034ebec06bc5365a440c61322dd5626dd59
parent636656bcd7801c703ebcf9bd4c65197e4e6cbee8
ac/llvm: fix 64-bit fmed3

Lower 64-bit fmed3 because LLVM doesn't expose an intrinsic.

Fixes dEQP-VK.spirv_assembly.instruction.amd_trinary_minmax.mid3.f64.*.

Fixes: d6a07732c9c ("ac: use llvm.amdgcn.fmed3 intrinsic for nir_op_fmed3")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3962>
src/amd/llvm/ac_llvm_build.c