mesa/src/amd
Georg Lehmann cbeccb0a09 radv: call radv_optimize_nir after lowering io
We are moving more and more passes after lowering io
because they no longer operate on variables.

There doesn't really seem to be a need to optimize before
lowering io, so do it afterwards.

Foz-DB Navi48:
Totals from 2339 (1.14% of 205045) affected shaders:
MaxWaves: 66218 -> 66258 (+0.06%)
Instrs: 2009510 -> 2007711 (-0.09%); split: -0.15%, +0.06%
CodeSize: 10646476 -> 10648376 (+0.02%); split: -0.05%, +0.07%
VGPRs: 131304 -> 131232 (-0.05%)
Latency: 19249976 -> 19248715 (-0.01%); split: -0.02%, +0.02%
InvThroughput: 3133252 -> 3132291 (-0.03%); split: -0.05%, +0.02%
VClause: 32999 -> 33003 (+0.01%); split: -0.07%, +0.08%
SClause: 42959 -> 43101 (+0.33%); split: -0.27%, +0.60%
Copies: 143721 -> 143792 (+0.05%); split: -0.38%, +0.43%
Branches: 38736 -> 38738 (+0.01%)
PreSGPRs: 106104 -> 105846 (-0.24%); split: -0.27%, +0.03%
PreVGPRs: 95217 -> 95179 (-0.04%); split: -0.04%, +0.00%
VALU: 1146620 -> 1144783 (-0.16%); split: -0.22%, +0.06%
SALU: 275263 -> 275183 (-0.03%); split: -0.16%, +0.13%
VMEM: 58353 -> 58364 (+0.02%)
SMEM: 84810 -> 85215 (+0.48%); split: -0.00%, +0.48%

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40928>
2026-04-14 12:58:00 +00:00
..
addrlib amd/addrlib: Add more GFX1013 GPUs 2026-03-16 09:40:41 +00:00
ci radv/ci: set RADV_EXPERIMENTAL=heap 2026-04-14 10:10:29 +00:00
common ac/tests: use amdgpu shim devices 2026-04-14 12:06:20 +00:00
compiler radv/rt: declare shader arguments for resource/sampler heaps 2026-04-14 10:10:24 +00:00
drm-shim ac/tests: use amdgpu shim devices 2026-04-14 12:06:20 +00:00
gmlib meson: Relax -Wmaybe-uninitialized errors 2025-09-16 06:16:20 +00:00
lanczoslib meson: Relax -Wmaybe-uninitialized errors 2025-09-16 06:16:20 +00:00
llvm nir: rename fsin_amd and fcos_amd to a more generic name 2026-03-31 01:47:29 +02:00
packets amd: switch to new packet definitions for all packets 2026-04-10 03:42:45 +00:00
registers amd: switch to new packet definitions for all packets 2026-04-10 03:42:45 +00:00
vpelib amd/vpelib: Apply external CSC 2026-03-04 13:17:26 +08:00
vulkan radv: call radv_optimize_nir after lowering io 2026-04-14 12:58:00 +00:00
meson.build radv/tests: require drm-shim and use it instead of RADV_FORCE_FAMILY 2025-11-19 07:11:05 +00:00