panfrost: Switch to nir_lower_doubles instead of lower_fmod64.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 3 Jun 2019 18:54:21 +0000 (11:54 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 5 Jun 2019 23:45:12 +0000 (16:45 -0700)
I don't think panfrost actually does doubles yet, but it at least
claims to support PIPE_CAP_DOUBLES, so at least pretend to switch
to the new lowering.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/midgard/midgard_compile.h

index 9e6ac02f84fdab733be939c7d9532030642b3e0e..ba9e74adef394f5b1deb9482555d0bd4fff24200 100644 (file)
@@ -92,7 +92,6 @@ static const nir_shader_compiler_options midgard_nir_options = {
         .lower_flrp64 = true,
         .lower_ffract = true,
         .lower_fmod32 = true,
-        .lower_fmod64 = true,
         .lower_fdiv = true,
         .lower_idiv = true,
         .lower_isign = true,
@@ -108,6 +107,8 @@ static const nir_shader_compiler_options midgard_nir_options = {
         .vertex_id_zero_based = true,
         .lower_extract_byte = true,
         .lower_extract_word = true,
+
+        .lower_doubles_options = nir_lower_dmod,
 };
 
 #endif