aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/compiler/brw_nir_lower_scoped_barriers.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/intel/compiler/brw_nir_lower_scoped_barriers.c')
-rw-r--r--src/intel/compiler/brw_nir_lower_scoped_barriers.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/intel/compiler/brw_nir_lower_scoped_barriers.c b/src/intel/compiler/brw_nir_lower_scoped_barriers.c
index bc78ff1985f..50ab3566cf7 100644
--- a/src/intel/compiler/brw_nir_lower_scoped_barriers.c
+++ b/src/intel/compiler/brw_nir_lower_scoped_barriers.c
@@ -64,6 +64,8 @@ lower_impl(nir_function_impl *impl)
if (progress) {
nir_metadata_preserve(impl, nir_metadata_block_index |
nir_metadata_dominance);
+ } else {
+ nir_metadata_preserve(impl, nir_metadata_all);
}
return progress;