Module: Mesa Branch: main Commit: 3a336a8ffd835d10556fbe96b03c91c168f46f24 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3a336a8ffd835d10556fbe96b03c91c168f46f24
Author: Emma Anholt <[email protected]> Date: Thu Mar 23 09:53:18 2023 -0700 nouveau: Add missing nir_opt_algebraic_late. This was needed for nir_lower_frexp, but it's a win anyway. shader-db results: total gpr in shared programs: 1143621 -> 1143502 (-0.01%) gpr in affected programs: 33918 -> 33799 (-0.35%) total instructions in shared programs: 7829415 -> 7820124 (-0.12%) instructions in affected programs: 1204967 -> 1195676 (-0.77%) total bytes in shared programs: 71802760 -> 71717352 (-0.12%) bytes in affected programs: 11031888 -> 10946480 (-0.77%) 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 cb0c0e2aa43..6299038ae6f 100644 --- a/src/nouveau/codegen/nv50_ir_from_nir.cpp +++ b/src/nouveau/codegen/nv50_ir_from_nir.cpp @@ -3380,6 +3380,8 @@ Converter::run() if (nir->info.stage == MESA_SHADER_FRAGMENT) NIR_PASS_V(nir, nv_nir_move_stores_to_end); + NIR_PASS(progress, nir, nir_opt_algebraic_late); + NIR_PASS_V(nir, nir_lower_bool_to_int32); NIR_PASS_V(nir, nir_lower_bit_size, Converter::lowerBitSizeCB, this);
