Module: Mesa Branch: main Commit: d6a48ff40278b674a855791284a753ecca3f7cf8 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d6a48ff40278b674a855791284a753ecca3f7cf8
Author: Karol Herbst <[email protected]> Date: Fri Oct 20 23:21:46 2023 +0200 vtn/opencl: always lower to libclc fmod The nir/spirv variant is simply not precise enough and almost everybody lowers it anyway. Signed-off-by: Karol Herbst <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25837> --- src/compiler/spirv/vtn_opencl.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/compiler/spirv/vtn_opencl.c b/src/compiler/spirv/vtn_opencl.c index f881588d2fe..d36b851d0eb 100644 --- a/src/compiler/spirv/vtn_opencl.c +++ b/src/compiler/spirv/vtn_opencl.c @@ -508,10 +508,6 @@ handle_special(struct vtn_builder *b, uint32_t opcode, return nir_cross3(nb, srcs[0], srcs[1]); case OpenCLstd_Fdim: return nir_fdim(nb, srcs[0], srcs[1]); - case OpenCLstd_Fmod: - if (nb->shader->options->lower_fmod) - break; - return nir_fmod(nb, srcs[0], srcs[1]); case OpenCLstd_Mad: return nir_fmad(nb, srcs[0], srcs[1], srcs[2]); case OpenCLstd_Maxmag:
