nak: call nir_opt_algebraic_distribute_src_mods
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

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 <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:26:49 +02:00 committed by Karol Herbst
parent a9eac010dd
commit 4b66258717

View file

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