Module: Mesa Branch: main Commit: 7c57061b77e9b82f46d4b354df949dd2524730d4 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7c57061b77e9b82f46d4b354df949dd2524730d4
Author: Emma Anholt <[email protected]> Date: Wed Mar 22 13:53:35 2023 -0700 nouveau: Enable frexp lowering in the backend. This would be desired for NVK using this backend, but also for getting lowering out of the GLSL frontend. Reviewed-by: Marek Olšák <[email protected]> Reviewed-by: Karol Herbst <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22083> --- src/nouveau/codegen/nv50_ir_from_nir.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nouveau/codegen/nv50_ir_from_nir.cpp b/src/nouveau/codegen/nv50_ir_from_nir.cpp index 6299038ae6f..e12e6c84f9a 100644 --- a/src/nouveau/codegen/nv50_ir_from_nir.cpp +++ b/src/nouveau/codegen/nv50_ir_from_nir.cpp @@ -3347,6 +3347,8 @@ Converter::run() NIR_PASS_V(nir, nir_lower_alu_to_scalar, NULL, NULL); NIR_PASS_V(nir, nir_lower_phis_to_scalar, false); + NIR_PASS_V(nir, nir_lower_frexp); + /*TODO: improve this lowering/optimisation loop so that we can use * nir_opt_idiv_const effectively before this. */
