Module: Mesa Branch: main Commit: 862235ecaa8c5ac8362da97f79c43913596e1a92 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=862235ecaa8c5ac8362da97f79c43913596e1a92
Author: Emma Anholt <[email protected]> Date: Wed Mar 22 13:58:35 2023 -0700 v3d: Lower frexp in the GL compiler like we do in Vulkan. Needed for dropping GLSL's frontend lowering. Reviewed-by: Alyssa Rosenzweig <[email protected]> Reviewed-by: Marek Olšák <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22083> --- 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 828ab7c8b0e..97535a1bcf3 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);
