nir/algebraic: coalesce fmod lowering
authorJuan A. Suarez Romero <jasuarez@igalia.com>
Tue, 10 Mar 2020 10:50:30 +0000 (10:50 +0000)
committerMarge Bot <eric+marge@anholt.net>
Thu, 12 Mar 2020 16:42:52 +0000 (16:42 +0000)
commit90550b2a3e0809c47f51f97a84a91bb3f61103f7
treeb349c34039240282d6afea10791ce92c409e5f1b
parentacd0dd3b4b223a423fbe9ffd118c3fbbf119d993
nir/algebraic: coalesce fmod lowering

As fmod for 16/32/64 bits lowering does the same, let's merge all of
them in a single case.

Fixes dEQP-VK.glsl.builtin.precision_double.mod.compute.* on ACO.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4118>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4118>
src/compiler/nir/nir_opt_algebraic.py