From 4b662587170196783ae0abd10fb34161d30db394 Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Mon, 27 Apr 2026 20:26:49 +0200 Subject: [PATCH] nak: call nir_opt_algebraic_distribute_src_mods Totals from 134863 (11.12% of 1212873) affected shaders: CodeSize: 2109574320 -> 2105266608 (-0.20%); split: -0.23%, +0.02% Number of GPRs: 7199115 -> 7194107 (-0.07%); split: -0.13%, +0.06% SLM Size: 201728 -> 201720 (-0.00%); split: -0.01%, +0.00% Static cycle count: 2037608114 -> 2035165858 (-0.12%); split: -0.17%, +0.05% Spills to memory: 22063 -> 22035 (-0.13%); split: -0.14%, +0.01% Fills from memory: 22063 -> 22035 (-0.13%); split: -0.14%, +0.01% Spills to reg: 78193 -> 78139 (-0.07%); split: -0.17%, +0.10% Fills from reg: 83383 -> 83335 (-0.06%); split: -0.15%, +0.09% Max warps/SM: 5188428 -> 5188840 (+0.01%); split: +0.03%, -0.02% Reviewed-by: Mel Henning Part-of: --- src/nouveau/compiler/nak_nir.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nouveau/compiler/nak_nir.c b/src/nouveau/compiler/nak_nir.c index e882bf2de66..1f2e02e4805 100644 --- a/src/nouveau/compiler/nak_nir.c +++ b/src/nouveau/compiler/nak_nir.c @@ -1335,6 +1335,7 @@ nak_postprocess_nir(nir_shader *nir, progress = false; OPT(nir, nir_opt_algebraic_late); OPT(nir, nak_nir_lower_algebraic_late, nak); + OPT(nir, nir_opt_algebraic_distribute_src_mods); /* If we're lowering fp64 sat but not min/max, the sat lowering may have * been undone by nir_opt_algebraic. Lower sat again just to be sure.