Module: Mesa
Branch: main
Commit: 04c31c6ada7f462b587bafde0a3c77d2d4f67e80
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=04c31c6ada7f462b587bafde0a3c77d2d4f67e80

Author: Emma Anholt <[email protected]>
Date:   Wed Mar 22 13:56:46 2023 -0700

zink: Enable nir_lower_frexp.

This will enable GLSL to drop its frexp lowering in the frontend.

Reviewed-by: Alyssa Rosenzweig <[email protected]>
Acked-by: Mike Blumenkrantz <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22083>

---

 src/gallium/drivers/zink/zink_compiler.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/zink/zink_compiler.c 
b/src/gallium/drivers/zink/zink_compiler.c
index ed6d7d3220a..eef9aa4043f 100644
--- a/src/gallium/drivers/zink/zink_compiler.c
+++ b/src/gallium/drivers/zink/zink_compiler.c
@@ -4729,6 +4729,7 @@ zink_shader_create(struct zink_screen *screen, struct 
nir_shader *nir,
    NIR_PASS_V(nir, lower_baseinstance);
    NIR_PASS_V(nir, lower_sparse);
    NIR_PASS_V(nir, split_bitfields);
+   NIR_PASS_V(nir, nir_lower_frexp); /* TODO: Use the spirv instructions for 
this. */
 
    if (screen->info.have_EXT_shader_demote_to_helper_invocation) {
       NIR_PASS_V(nir, nir_lower_discard_or_demote,

Reply via email to