gallium: Drop lower_fmod64 from drivers that don't support doubles.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 3 Jun 2019 18:41:37 +0000 (11:41 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 5 Jun 2019 23:45:12 +0000 (16:45 -0700)
Neither freedreno nor nv50 expose PIPE_CAP_DOUBLES, so there's no
fmod64 to be lowered.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/freedreno/ir3/ir3_nir.c
src/gallium/drivers/nouveau/nv50/nv50_screen.c

index 8d2eef94e57cbd8d8571c98040a99d8b544fd404..888ce5a70f6b080802f41f387b336fb176e74e34 100644 (file)
@@ -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,
index 5e14ac2124d7c0979aa07b601927cec65bc50317..a17c0a9352b1b084b25c514ef096a9c980acadef 100644 (file)
@@ -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,