Mesa (main): intel/compiler: invalidate metadata in brw_nir_initialize_mue
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Apr 19 12:06:27 UTC 2022
Module: Mesa
Branch: main
Commit: 5dace41c108f84e9e0ba4de42da2261ae834fd3b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5dace41c108f84e9e0ba4de42da2261ae834fd3b
Author: Marcin Ślusarz <marcin.slusarz at intel.com>
Date: Wed Apr 13 14:37:15 2022 +0200
intel/compiler: invalidate metadata in brw_nir_initialize_mue
New "if" blocks may have been inserted.
Fixes: bc4f8c073a2 ("intel/compiler: inject MUE initialization")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15924>
---
src/intel/compiler/brw_mesh.cpp | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/intel/compiler/brw_mesh.cpp b/src/intel/compiler/brw_mesh.cpp
index 3a971152f99..0f177f55a3c 100644
--- a/src/intel/compiler/brw_mesh.cpp
+++ b/src/intel/compiler/brw_mesh.cpp
@@ -584,6 +584,13 @@ brw_nir_initialize_mue(nir_shader *nir,
nir_scoped_barrier(&b, NIR_SCOPE_WORKGROUP, NIR_SCOPE_WORKGROUP,
NIR_MEMORY_ACQ_REL, nir_var_shader_out);
}
+
+ if (remaining) {
+ nir_metadata_preserve(entrypoint, nir_metadata_none);
+ } else {
+ nir_metadata_preserve(entrypoint, nir_metadata_block_index |
+ nir_metadata_dominance);
+ }
}
static bool
More information about the mesa-commit
mailing list