From: Kenneth Graunke Date: Mon, 3 Jun 2019 18:41:37 +0000 (-0700) Subject: gallium: Drop lower_fmod64 from drivers that don't support doubles. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fa56a3795f9f4b15013f2163193c54611fd2b8e0;p=mesa.git gallium: Drop lower_fmod64 from drivers that don't support doubles. Neither freedreno nor nv50 expose PIPE_CAP_DOUBLES, so there's no fmod64 to be lowered. Reviewed-by: Marek Olšák --- diff --git a/src/freedreno/ir3/ir3_nir.c b/src/freedreno/ir3/ir3_nir.c index 8d2eef94e57..888ce5a70f6 100644 --- a/src/freedreno/ir3/ir3_nir.c +++ b/src/freedreno/ir3/ir3_nir.c @@ -41,7 +41,6 @@ static const nir_shader_compiler_options options = { .lower_flrp64 = true, .lower_ffract = true, .lower_fmod32 = true, - .lower_fmod64 = true, .lower_fdiv = true, .lower_isign = true, .lower_ldexp = true, @@ -67,7 +66,6 @@ static const nir_shader_compiler_options options_a6xx = { .lower_flrp64 = true, .lower_ffract = true, .lower_fmod32 = true, - .lower_fmod64 = true, .lower_fdiv = true, .lower_isign = true, .lower_ldexp = true, diff --git a/src/gallium/drivers/nouveau/nv50/nv50_screen.c b/src/gallium/drivers/nouveau/nv50/nv50_screen.c index 5e14ac2124d..a17c0a9352b 100644 --- a/src/gallium/drivers/nouveau/nv50/nv50_screen.c +++ b/src/gallium/drivers/nouveau/nv50/nv50_screen.c @@ -882,7 +882,6 @@ static const nir_shader_compiler_options nir_options = { .lower_flrp32 = true, .lower_flrp64 = true, .lower_fpow = false, - .lower_fmod64 = true, .lower_uadd_carry = true, .lower_usub_borrow = true, .lower_ffract = true,