Skip to content
Snippets Groups Projects
Commit ba0c78f4 authored by Kenneth Graunke's avatar Kenneth Graunke Committed by Emil Velikov
Browse files

nir: Properly invalidate metadata in nir_opt_copy_prop().


Signed-off-by: Kenneth Graunke's avatarKenneth Graunke <kenneth@whitecape.org>
Reviewed-by: default avatarJason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: default avatarEduardo Lima Mitev <elima@igalia.com>
Cc: mesa-stable@lists.freedesktop.org
(cherry picked from commit 0f037bd7)
parent a4b73eef
No related branches found
No related tags found
No related merge requests found
...@@ -262,6 +262,12 @@ nir_copy_prop_impl(nir_function_impl *impl) ...@@ -262,6 +262,12 @@ nir_copy_prop_impl(nir_function_impl *impl)
bool progress = false; bool progress = false;
nir_foreach_block(impl, copy_prop_block, &progress); nir_foreach_block(impl, copy_prop_block, &progress);
if (progress) {
nir_metadata_preserve(impl, nir_metadata_block_index |
nir_metadata_dominance);
}
return progress; return progress;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment