From 5e1c42d85f2d89faddbc91be94b35044b29df847 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Thu, 21 May 2020 20:41:12 -0500 Subject: nir: Call nir_metadata_preserve on !progress Reviewed-by: Alyssa Rosenzweig Reviewed-by: Kenneth Graunke Part-of: --- src/compiler/nir/nir_lower_load_const_to_scalar.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/compiler/nir/nir_lower_load_const_to_scalar.c') diff --git a/src/compiler/nir/nir_lower_load_const_to_scalar.c b/src/compiler/nir/nir_lower_load_const_to_scalar.c index a65dcb06d0c..197cebd695d 100644 --- a/src/compiler/nir/nir_lower_load_const_to_scalar.c +++ b/src/compiler/nir/nir_lower_load_const_to_scalar.c @@ -81,9 +81,7 @@ nir_lower_load_const_to_scalar_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; -- cgit v1.2.3