From 862235ecaa8c5ac8362da97f79c43913596e1a92 Mon Sep 17 00:00:00 2001 From: Emma Anholt Date: Wed, 22 Mar 2023 13:58:35 -0700 Subject: [PATCH] v3d: Lower frexp in the GL compiler like we do in Vulkan. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Needed for dropping GLSL's frontend lowering. Reviewed-by: Alyssa Rosenzweig Reviewed-by: Marek Olšák Part-of: --- src/gallium/drivers/v3d/v3d_program.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/v3d/v3d_program.c b/src/gallium/drivers/v3d/v3d_program.c index 828ab7c..97535a1 100644 --- a/src/gallium/drivers/v3d/v3d_program.c +++ b/src/gallium/drivers/v3d/v3d_program.c @@ -327,6 +327,8 @@ v3d_uncompiled_shader_create(struct pipe_context *pctx, NIR_PASS(_, s, nir_remove_dead_variables, nir_var_function_temp, NULL); + NIR_PASS(_, s, nir_lower_frexp); + /* Garbage collect dead instructions */ nir_sweep(s); -- 2.7.4