Commit e0641e07 authored by Kenneth Graunke's avatar Kenneth Graunke

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: default avatarMarek Olšák <>
Acked-by: Eric Anholt's avatarEric Anholt <>
parent b0e3bd79
......@@ -2189,6 +2189,7 @@ static const nir_shader_compiler_options nir_options = {
.lower_fdiv = true,
.lower_ffma = true,
.lower_flrp32 = true,
.lower_fmod = true,
.lower_fpow = true,
.lower_fsat = true,
.lower_fsqrt = true,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment