v3d: Lower frexp in the GL compiler like we do in Vulkan.

Needed for dropping GLSL's frontend lowering.

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22083>
This commit is contained in:
Emma Anholt
2023-03-22 13:58:35 -07:00
committed by Marge Bot
parent 04c31c6ada
commit 862235ecaa
+2
View File
@@ -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);