From: Kenneth Graunke Date: Tue, 3 Nov 2015 05:38:56 +0000 (-0800) Subject: nir: Properly invalidate metadata in nir_lower_vec_to_movs(). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bc3942e2970c60a816cf954b1fa4d416d0852bd9;p=mesa.git 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 --- 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; }