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 <mhenning@darkrefraction.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41214>
This commit is contained in:
Karol Herbst 2026-04-27 20:00:35 +02:00 committed by Karol Herbst
parent 3dcba87ca3
commit a9eac010dd

View file

@ -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 {