r300: add some more nir cleanup compiler passes

We need this to prevent some regressions in the later commits.

Signed-off-by: Pavel Ondračka <pavel.ondracka@gmail.com>
Reviewed-by: Filip Gawin <None>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33066>
This commit is contained in:
Pavel Ondračka 2024-12-07 21:47:06 +01:00 committed by Marge Bot
parent e832bc1ae5
commit ca70270a5e

View file

@ -2345,6 +2345,8 @@ nir_to_rc(struct nir_shader *s, struct pipe_screen *screen,
}
NIR_PASS_V(s, r300_nir_opt_algebraic_late);
NIR_PASS_V(s, nir_opt_dce);
NIR_PASS_V(s, nir_opt_shrink_vectors, false);
NIR_PASS_V(s, nir_opt_dce);
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;