mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
nak: sink load_global
This seem to hurt smaller shaders, but really helps a lot with some of the worst cases we have reducing spilling by quite a lot. Totals from 15249 (1.26% of 1212873) affected shaders: CodeSize: 332565024 -> 333294192 (+0.22%); split: -0.38%, +0.60% Number of GPRs: 1020912 -> 1017649 (-0.32%); split: -2.15%, +1.83% SLM Size: 114724 -> 90240 (-21.34%); split: -21.37%, +0.03% Static cycle count: 538619840 -> 537174408 (-0.27%); split: -0.88%, +0.61% Spills to memory: 46686 -> 38685 (-17.14%) Fills from memory: 46686 -> 38685 (-17.14%) Spills to reg: 21224 -> 20703 (-2.45%); split: -3.23%, +0.77% Fills from reg: 19768 -> 19327 (-2.23%); split: -2.87%, +0.64% Max warps/SM: 519248 -> 519768 (+0.10%); split: +1.10%, -1.00%
This commit is contained in:
parent
81095eb0c0
commit
e147c095b4
1 changed files with 1 additions and 0 deletions
|
|
@ -1375,6 +1375,7 @@ nak_postprocess_nir(nir_shader *nir,
|
|||
} while (progress);
|
||||
|
||||
OPT(nir, nir_opt_move, nir_move_comparisons | nir_move_load_ubo);
|
||||
OPT(nir, nir_opt_sink, nir_move_load_global);
|
||||
|
||||
if (nak->sm < 70) {
|
||||
const nir_split_conversions_options split_conv_opts = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue