diff options
author | Kenneth Graunke <[email protected]> | 2019-06-03 13:36:56 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-06-05 16:45:12 -0700 |
commit | b0e3bd79dcafd48e698a784ca29f337cb6fb2c97 (patch) | |
tree | cb9d454cc5a344422bd8a2111f5e0d2ad8ad50be | |
parent | c7d1b52a2c2bf8dc8066db8a7adb02241ccf9e2d (diff) |
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 <[email protected]>
Acked-by: Eric Anholt <[email protected]>
-rw-r--r-- | src/broadcom/compiler/nir_to_vir.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/broadcom/compiler/nir_to_vir.c b/src/broadcom/compiler/nir_to_vir.c index 5d7b42d91b6..55e41e16b36 100644 --- a/src/broadcom/compiler/nir_to_vir.c +++ b/src/broadcom/compiler/nir_to_vir.c @@ -2382,6 +2382,7 @@ const nir_shader_compiler_options v3d_nir_options = { .lower_bit_count = true, .lower_cs_local_id_from_index = true, .lower_ffract = true, + .lower_fmod = true, .lower_pack_unorm_2x16 = true, .lower_pack_snorm_2x16 = true, .lower_pack_unorm_4x8 = true, |