radv: enable lower_fmod for the LLVM path
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 3 Oct 2019 14:20:40 +0000 (16:20 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 3 Oct 2019 16:15:14 +0000 (18:15 +0200)
commit5ebe1a17e98692880cff84e941d2683705c83f80
tree834d03f9350e2347f7624501a09018eb8d761056
parent1b87f4058de84d7a0bb4ead0c4f4b024d4cce8fb
radv: enable lower_fmod for the LLVM path

This lowers fmod and frem at NIR level like RadeonSI. fmod is
already lowered directly in NIR->LLVM, and frem will be lowered by
LLVM anyways.

This fixes a LLVM crash with:
dEQP-VK.glsl.builtin.precision_fp16_storage32b.frem.compute.scalar.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_shader.c