diff options
author | Samuel Pitoiset <[email protected]> | 2019-10-03 16:20:40 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2019-10-03 18:15:14 +0200 |
commit | 5ebe1a17e98692880cff84e941d2683705c83f80 (patch) | |
tree | 834d03f9350e2347f7624501a09018eb8d761056 /src/amd/vulkan/radv_shader.c | |
parent | 1b87f4058de84d7a0bb4ead0c4f4b024d4cce8fb (diff) |
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 <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_shader.c')
-rw-r--r-- | src/amd/vulkan/radv_shader.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c index 18608d8a9be..09c5ce639c8 100644 --- a/src/amd/vulkan/radv_shader.c +++ b/src/amd/vulkan/radv_shader.c @@ -61,6 +61,7 @@ static const struct nir_shader_compiler_options nir_options_llvm = { .lower_device_index_to_zero = true, .lower_fsat = true, .lower_fdiv = true, + .lower_fmod = true, .lower_bitfield_insert_to_bitfield_select = true, .lower_bitfield_extract = true, .lower_sub = true, |