From 3eed871f41fd7d590c57c684ca841a61513b7b8d Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Wed, 18 Aug 2021 14:24:50 +0100 Subject: [PATCH] nir: call nir_metadata_preserve in nir_vectorize_tess_levels This is necessary to use this pass with the NIR_PASS() macro. Signed-off-by: Rhys Perry Reviewed-by: Samuel Pitoiset Part-of: --- src/compiler/nir/nir_lower_io_to_vector.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/compiler/nir/nir_lower_io_to_vector.c b/src/compiler/nir/nir_lower_io_to_vector.c index e49fda5d587..e17f6ddb158 100644 --- a/src/compiler/nir/nir_lower_io_to_vector.c +++ b/src/compiler/nir/nir_lower_io_to_vector.c @@ -677,6 +677,11 @@ nir_vectorize_tess_levels_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; }