vc4: Enable NIR's lower_fmod option.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 4 Jun 2019 06:06:49 +0000 (23:06 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 5 Jun 2019 23:45:12 +0000 (16:45 -0700)
commite0641e0728aa21b884408794abff07857824cc6f
tree2d213f2701b42be2a12bf5261a3197f69c9c015b
parentb0e3bd79dcafd48e698a784ca29f337cb6fb2c97
vc4: 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/gallium/drivers/vc4/vc4_program.c