Module: Mesa
Branch: master
Commit: dfb18f0a28a64d96b5a3800b8096dc5fbf813986
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=dfb18f0a28a64d96b5a3800b8096dc5fbf813986

Author: Kenneth Graunke <[email protected]>
Date:   Mon Jun  3 11:54:21 2019 -0700

panfrost: Switch to nir_lower_doubles instead of lower_fmod64.

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 <[email protected]>
Acked-by: Alyssa Rosenzweig <[email protected]>

---

 src/gallium/drivers/panfrost/midgard/midgard_compile.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/panfrost/midgard/midgard_compile.h 
b/src/gallium/drivers/panfrost/midgard/midgard_compile.h
index 9e6ac02f84f..ba9e74adef3 100644
--- a/src/gallium/drivers/panfrost/midgard/midgard_compile.h
+++ b/src/gallium/drivers/panfrost/midgard/midgard_compile.h
@@ -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

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to