diff options
Diffstat (limited to 'src/compiler/nir/nir_opt_if.c')
-rw-r--r-- | src/compiler/nir/nir_opt_if.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/compiler/nir/nir_opt_if.c b/src/compiler/nir/nir_opt_if.c index e07e852f869..9c32ab1cc57 100644 --- a/src/compiler/nir/nir_opt_if.c +++ b/src/compiler/nir/nir_opt_if.c @@ -1451,9 +1451,7 @@ nir_opt_if(nir_shader *shader, bool aggressive_last_continue) if (preserve) { nir_metadata_preserve(function->impl, nir_metadata_none); } else { - #ifndef NDEBUG - function->impl->valid_metadata &= ~nir_metadata_not_properly_reset; - #endif + nir_metadata_preserve(function->impl, nir_metadata_all); } } |