ac/llvm: flush denorms for nir_op_fmed3 on GFX8 and older gens
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 26 Feb 2020 14:12:55 +0000 (15:12 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 27 Feb 2020 07:04:33 +0000 (08:04 +0100)
commit9e5d2a73c5fc12841b62758a035b2bdb191b3f86
tree79ac95cf9cee6cc693ffc8d779f0dcab61c9c8c1
parent30ac733680c3dfbfd1300c5498dd1b0c0a680905
ac/llvm: flush denorms for nir_op_fmed3 on GFX8 and older gens

The hardware doesn't flush denorms, exactly like fmin/fmax, so
we have to do it manually. This doesn't fix anything known.

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>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3962>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3962>
src/amd/llvm/ac_llvm_build.c