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

Author: Mike Blumenkrantz <[email protected]>
Date:   Thu Feb 11 10:33:25 2021 -0500

zink: lower flrp64 and ffma64 when in softfp64 mode

fixes a bunch of crashes

Reviewed-by: Hoe Hao Cheng <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8986>

---

 src/gallium/drivers/zink/zink_compiler.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/zink/zink_compiler.c 
b/src/gallium/drivers/zink/zink_compiler.c
index d69c514025a..999b2f0aefc 100644
--- a/src/gallium/drivers/zink/zink_compiler.c
+++ b/src/gallium/drivers/zink/zink_compiler.c
@@ -234,8 +234,11 @@ zink_screen_init_compiler(struct zink_screen *screen)
    if (!screen->info.feats.features.shaderInt64)
       screen->nir_options.lower_int64_options = ~0;
 
-   if (!screen->info.feats.features.shaderFloat64)
+   if (!screen->info.feats.features.shaderFloat64) {
       screen->nir_options.lower_doubles_options = ~0;
+      screen->nir_options.lower_flrp64 = true;
+      screen->nir_options.lower_ffma64 = true;
+   }
 }
 
 const void *

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

Reply via email to