From 8bb44510fca5315bbdd61502c72c22c7198c0daf Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Mon, 2 Nov 2015 21:05:08 -0800 Subject: [PATCH] nir: Properly invalidate metadata in nir_split_var_copies(). Signed-off-by: Kenneth Graunke Reviewed-by: Jason Ekstrand Reviewed-by: Eduardo Lima Mitev Cc: mesa-stable@lists.freedesktop.org --- src/glsl/nir/nir_split_var_copies.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/glsl/nir/nir_split_var_copies.c b/src/glsl/nir/nir_split_var_copies.c index d2ea58a8b7c..d463f7bdae9 100644 --- a/src/glsl/nir/nir_split_var_copies.c +++ b/src/glsl/nir/nir_split_var_copies.c @@ -271,6 +271,11 @@ split_var_copies_impl(nir_function_impl *impl) ralloc_free(state.dead_ctx); + if (state.progress) { + nir_metadata_preserve(impl, nir_metadata_block_index | + nir_metadata_dominance); + } + return state.progress; } -- 2.30.2