mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
crocus: Switch to use nir_foreach_function_impl
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23920>
This commit is contained in:
parent
e1bf96dd56
commit
46df42c4e8
1 changed files with 5 additions and 7 deletions
|
|
@ -339,13 +339,11 @@ crocus_fix_edge_flags(nir_shader *nir)
|
||||||
nir->info.inputs_read &= ~VERT_BIT_EDGEFLAG;
|
nir->info.inputs_read &= ~VERT_BIT_EDGEFLAG;
|
||||||
nir_fixup_deref_modes(nir);
|
nir_fixup_deref_modes(nir);
|
||||||
|
|
||||||
nir_foreach_function(f, nir) {
|
nir_foreach_function_impl(impl, nir) {
|
||||||
if (f->impl) {
|
nir_metadata_preserve(impl, nir_metadata_block_index |
|
||||||
nir_metadata_preserve(f->impl, nir_metadata_block_index |
|
nir_metadata_dominance |
|
||||||
nir_metadata_dominance |
|
nir_metadata_live_ssa_defs |
|
||||||
nir_metadata_live_ssa_defs |
|
nir_metadata_loop_analysis);
|
||||||
nir_metadata_loop_analysis);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue