From: Kenneth Graunke Date: Tue, 13 Sep 2016 22:17:29 +0000 (-0700) Subject: nir: Call nir_metadata_preserve from nir_lower_alu_to_scalar(). X-Git-Tag: upstream/17.1.0~6378 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e6eed3533e578f29e1e40c5db10c44df003fc8da;p=platform%2Fupstream%2Fmesa.git nir: Call nir_metadata_preserve from nir_lower_alu_to_scalar(). This is mandatory. Cc: mesa-stable@lists.freedesktop.org Signed-off-by: Kenneth Graunke Reviewed-by: Eric Anholt --- diff --git a/src/compiler/nir/nir_lower_alu_to_scalar.c b/src/compiler/nir/nir_lower_alu_to_scalar.c index 4f72cf7..a84fbdf 100644 --- a/src/compiler/nir/nir_lower_alu_to_scalar.c +++ b/src/compiler/nir/nir_lower_alu_to_scalar.c @@ -254,6 +254,9 @@ nir_lower_alu_to_scalar_impl(nir_function_impl *impl) lower_alu_instr_scalar(nir_instr_as_alu(instr), &builder); } } + + nir_metadata_preserve(impl, nir_metadata_block_index | + nir_metadata_dominance); } void