aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_opt_barriers.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/nir/nir_opt_barriers.c')
-rw-r--r--src/compiler/nir/nir_opt_barriers.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_opt_barriers.c b/src/compiler/nir/nir_opt_barriers.c
index 49ab10511f8..18c3d790eb9 100644
--- a/src/compiler/nir/nir_opt_barriers.c
+++ b/src/compiler/nir/nir_opt_barriers.c
@@ -58,6 +58,8 @@ nir_opt_combine_memory_barriers_impl(
nir_metadata_preserve(impl, nir_metadata_block_index |
nir_metadata_dominance |
nir_metadata_live_ssa_defs);
+ } else {
+ nir_metadata_preserve(impl, nir_metadata_all);
}
return progress;