From bc3942e2970c60a816cf954b1fa4d416d0852bd9 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Mon, 2 Nov 2015 21:38:56 -0800 Subject: [PATCH] nir: Properly invalidate metadata in nir_lower_vec_to_movs(). Signed-off-by: Kenneth Graunke Reviewed-by: Jason Ekstrand Reviewed-by: Eduardo Lima Mitev Cc: mesa-stable@lists.freedesktop.org --- src/glsl/nir/nir_lower_vec_to_movs.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/glsl/nir/nir_lower_vec_to_movs.c b/src/glsl/nir/nir_lower_vec_to_movs.c index c08b721dae4..736a66c8639 100644 --- a/src/glsl/nir/nir_lower_vec_to_movs.c +++ b/src/glsl/nir/nir_lower_vec_to_movs.c @@ -288,6 +288,11 @@ nir_lower_vec_to_movs_impl(nir_function_impl *impl) nir_foreach_block(impl, lower_vec_to_movs_block, &state); + if (state.progress) { + nir_metadata_preserve(impl, nir_metadata_block_index | + nir_metadata_dominance); + } + return state.progress; } -- 2.30.2