nir: Properly preserve metadata in more cases
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5171>
This commit is contained in:

committed by
Marge Bot

parent
5e1c42d85f
commit
2b676b2ce8
@@ -963,8 +963,12 @@ nir_opt_loop_unroll_impl(nir_function_impl *impl,
|
||||
progress |= process_loops_in_block(impl->function->shader, &impl->body,
|
||||
&has_nested_loop);
|
||||
|
||||
if (progress)
|
||||
if (progress) {
|
||||
nir_metadata_preserve(impl, nir_metadata_none);
|
||||
nir_lower_regs_to_ssa_impl(impl);
|
||||
} else {
|
||||
nir_metadata_preserve(impl, nir_metadata_all);
|
||||
}
|
||||
|
||||
return progress;
|
||||
}
|
||||
|
Reference in New Issue
Block a user