v3d: Enable NIR's lower_fmod option.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 3 Jun 2019 20:36:56 +0000 (13:36 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 5 Jun 2019 23:45:12 +0000 (16:45 -0700)
commitb0e3bd79dcafd48e698a784ca29f337cb6fb2c97
treecb9d454cc5a344422bd8a2111f5e0d2ad8ad50be
parentc7d1b52a2c2bf8dc8066db8a7adb02241ccf9e2d
v3d: Enable NIR's lower_fmod option.

Currently, st/mesa is always calling the GLSL IR lower_instructions()
pass with MOD_TO_FLOOR set, so mod operations will be lowered before
ever reaching NIR.  This enables the same lowering at the NIR level,
which will let me shut off the GLSL IR path for NIR-based drivers.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Eric Anholt <eric@anholt.net>
src/broadcom/compiler/nir_to_vir.c