mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 10:20:20 +01:00
pan/bi: Enable all nir_opt_move/sink optimizations
total instructions in shared programs: 116716 -> 116716 (0.00%) total nops in shared programs: 86280 -> 84996 (-1.49%) nops in affected programs: 50485 -> 49201 (-2.54%) Nops are helped. total clauses in shared programs: 20993 -> 20732 (-1.24%) clauses in affected programs: 7737 -> 7476 (-3.37%) Clauses are helped. total quadwords in shared programs: 91697 -> 91155 (-0.59%) quadwords in affected programs: 52123 -> 51581 (-1.04%) Quadwords are helped. total spills in shared programs: 0 -> 0 total fills in shared programs: 0 -> 0 Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10020>
This commit is contained in:
parent
0bd01e86f3
commit
52863f2e60
1 changed files with 6 additions and 2 deletions
|
|
@ -2864,8 +2864,12 @@ bi_optimize_nir(nir_shader *nir)
|
|||
|
||||
/* Backend scheduler is purely local, so do some global optimizations
|
||||
* to reduce register pressure */
|
||||
NIR_PASS_V(nir, nir_opt_sink, nir_move_const_undef);
|
||||
NIR_PASS_V(nir, nir_opt_move, nir_move_const_undef);
|
||||
nir_move_options move_all =
|
||||
nir_move_const_undef | nir_move_load_ubo | nir_move_load_input |
|
||||
nir_move_comparisons | nir_move_copies | nir_move_load_ssbo;
|
||||
|
||||
NIR_PASS_V(nir, nir_opt_sink, move_all);
|
||||
NIR_PASS_V(nir, nir_opt_move, move_all);
|
||||
|
||||
NIR_PASS(progress, nir, nir_lower_load_const_to_scalar);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue