From a9eac010dde24ad1aff3e21dcdc0d3f471ec1d9f Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Mon, 27 Apr 2026 20:00:35 +0200 Subject: [PATCH] nak: call nir_opt_fp_math_ctrl Totals from 77360 (6.38% of 1212873) affected shaders: CodeSize: 1255332672 -> 1250129888 (-0.41%); split: -0.44%, +0.03% Number of GPRs: 4233257 -> 4226625 (-0.16%); split: -0.20%, +0.05% Static cycle count: 937314398 -> 935865851 (-0.15%); split: -0.22%, +0.07% Spills to memory: 11371 -> 11373 (+0.02%) Fills from memory: 11371 -> 11373 (+0.02%) Spills to reg: 24245 -> 24262 (+0.07%); split: -0.65%, +0.72% Fills from reg: 23689 -> 23742 (+0.22%); split: -0.55%, +0.77% Max warps/SM: 2912604 -> 2916096 (+0.12%); split: +0.15%, -0.03% 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 9e0d0d34a98..e882bf2de66 100644 --- a/src/nouveau/compiler/nak_nir.c +++ b/src/nouveau/compiler/nak_nir.c @@ -1328,6 +1328,7 @@ nak_postprocess_nir(nir_shader *nir, if (nak->sm >= 70) OPT(nir, nir_normalize_sin_cos); + OPT(nir, nir_opt_fp_math_ctrl); nak_optimize_nir(nir, nak); do {