nir/lower_double_ops: add note for lowering mod
authorJuan A. Suarez Romero <jasuarez@igalia.com>
Wed, 8 Jan 2020 10:48:29 +0000 (10:48 +0000)
committerMarge Bot <eric+marge@anholt.net>
Wed, 26 Feb 2020 10:46:06 +0000 (10:46 +0000)
commit784c454607be3e8dc395de429d9b99521d5ef8a8
tree25b24c795755e9a665ae5ee3a83de506fb237fbd
parentd2e4435c205810b71990c27befde2f99ed45b9df
nir/lower_double_ops: add note for lowering mod

Add a note to clarify that while Vulkan allows mod(x,y) to be in [0, y]
range, OpenGL does not allow it, so the lowering ensures the result is
always in [0, y) range, as this lowering is shared by the Vulkan and
OpenGL implementation.

Reviewed-by: Elie Tournier <elie.tournier@collabora.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3315>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3315>
src/compiler/nir/nir_lower_double_ops.c