From fa56a3795f9f4b15013f2163193c54611fd2b8e0 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Mon, 3 Jun 2019 11:41:37 -0700 Subject: [PATCH] gallium: Drop lower_fmod64 from drivers that don't support doubles. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Neither freedreno nor nv50 expose PIPE_CAP_DOUBLES, so there's no fmod64 to be lowered. Reviewed-by: Marek Olšák --- src/freedreno/ir3/ir3_nir.c | 2 -- src/gallium/drivers/nouveau/nv50/nv50_screen.c | 1 - 2 files changed, 3 deletions(-) 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, -- 2.30.2