summaryrefslogtreecommitdiffstats
path: root/src/freedreno
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2019-06-03 13:18:55 -0700
committerKenneth Graunke <[email protected]>2019-06-05 16:45:12 -0700
commitc7d1b52a2c2bf8dc8066db8a7adb02241ccf9e2d (patch)
treeb61f57c9f9511119df845cac03d478134681eb5b /src/freedreno
parentedd45af9ba1952e2656af5772c5c5704b1884eba (diff)
nir: Combine lower_fmod16/32 back into a single lower_fmod.
We originally had a single lower_fmod option. In commit 2ab2d2e5, Sam split 32 and 64-bit lowering into separate flags, with the rationale that some drivers might want different options there. This left 16-bit unhandled, so Iago added a lower_fmod16 option in commit ca31df6f. Now that lower_fmod64 is gone (in favor of nir_lower_doubles and nir_lower_dmod), we re-combine lower_fmod16 and lower_fmod32 into a single lower_fmod flag again. I'm not aware of any hardware which need lowering for one bitsize and not the other. Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/freedreno')
-rw-r--r--src/freedreno/ir3/ir3_nir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/freedreno/ir3/ir3_nir.c b/src/freedreno/ir3/ir3_nir.c
index 888ce5a70f6..23dabee1fb0 100644
--- a/src/freedreno/ir3/ir3_nir.c
+++ b/src/freedreno/ir3/ir3_nir.c
@@ -40,7 +40,7 @@ static const nir_shader_compiler_options options = {
.lower_flrp32 = true,
.lower_flrp64 = true,
.lower_ffract = true,
- .lower_fmod32 = true,
+ .lower_fmod = true,
.lower_fdiv = true,
.lower_isign = true,
.lower_ldexp = true,
@@ -65,7 +65,7 @@ static const nir_shader_compiler_options options_a6xx = {
.lower_flrp32 = true,
.lower_flrp64 = true,
.lower_ffract = true,
- .lower_fmod32 = true,
+ .lower_fmod = true,
.lower_fdiv = true,
.lower_isign = true,
.lower_ldexp = true,