aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_lower_var_copies.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2020-05-21 20:41:12 -0500
committerMarge Bot <[email protected]>2020-06-11 05:08:12 +0000
commit5e1c42d85f2d89faddbc91be94b35044b29df847 (patch)
treecba107f062451b0534c92035aa8eb60f8578c932 /src/compiler/nir/nir_lower_var_copies.c
parentb0d1f9a72ff6e1c7164dc22ff5eb3e817f245d13 (diff)
nir: Call nir_metadata_preserve on !progress
Reviewed-by: Alyssa Rosenzweig <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5171>
Diffstat (limited to 'src/compiler/nir/nir_lower_var_copies.c')
-rw-r--r--src/compiler/nir/nir_lower_var_copies.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/compiler/nir/nir_lower_var_copies.c b/src/compiler/nir/nir_lower_var_copies.c
index e6ade733eba..f9df4446a14 100644
--- a/src/compiler/nir/nir_lower_var_copies.c
+++ b/src/compiler/nir/nir_lower_var_copies.c
@@ -150,9 +150,7 @@ lower_var_copies_impl(nir_function_impl *impl)
nir_metadata_preserve(impl, nir_metadata_block_index |
nir_metadata_dominance);
} else {
-#ifndef NDEBUG
- impl->valid_metadata &= ~nir_metadata_not_properly_reset;
-#endif
+ nir_metadata_preserve(impl, nir_metadata_all);
}
return progress;