mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-11-23 23:41:13 +00:00
r600: preserve all metadata when passes don't make progress
Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com> Reviewed-by: Gert Wollny <gert.wollny@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12467>
This commit is contained in:
parent
956d6461ef
commit
8892d276d2
@ -142,6 +142,8 @@ bool NirLowerIOToVector::run(nir_function_impl *impl)
|
|||||||
bool progress = vectorize_block(&b, nir_start_block(impl));
|
bool progress = vectorize_block(&b, nir_start_block(impl));
|
||||||
if (progress) {
|
if (progress) {
|
||||||
nir_metadata_preserve(impl, nir_metadata_block_index | nir_metadata_dominance);
|
nir_metadata_preserve(impl, nir_metadata_block_index | nir_metadata_dominance);
|
||||||
|
} else {
|
||||||
|
nir_metadata_preserve(impl, nir_metadata_all);
|
||||||
}
|
}
|
||||||
return progress;
|
return progress;
|
||||||
}
|
}
|
||||||
|
@ -443,6 +443,8 @@ r600_vectorize_io_impl(nir_function_impl *impl)
|
|||||||
if (progress) {
|
if (progress) {
|
||||||
nir_metadata_preserve(impl, nir_metadata_block_index |
|
nir_metadata_preserve(impl, nir_metadata_block_index |
|
||||||
nir_metadata_dominance);
|
nir_metadata_dominance);
|
||||||
|
} else {
|
||||||
|
nir_metadata_preserve(impl, nir_metadata_all);
|
||||||
}
|
}
|
||||||
|
|
||||||
r600_vec_instr_set_destroy(instr_set);
|
r600_vec_instr_set_destroy(instr_set);
|
||||||
|
Loading…
Reference in New Issue
Block a user