summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2016-09-13 15:17:29 -0700
committerKenneth Graunke <kenneth@whitecape.org>2016-09-14 12:01:39 -0700
commite6eed3533e578f29e1e40c5db10c44df003fc8da (patch)
tree73de4e5b4d69fbf7e1322deafd3bd01bb2da0f5e /src/compiler/nir
parentbff90aedf1d06c7e746b2d56319b19a624594feb (diff)
downloadexternal_mesa3d-e6eed3533e578f29e1e40c5db10c44df003fc8da.zip
external_mesa3d-e6eed3533e578f29e1e40c5db10c44df003fc8da.tar.gz
external_mesa3d-e6eed3533e578f29e1e40c5db10c44df003fc8da.tar.bz2
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 <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'src/compiler/nir')
-rw-r--r--src/compiler/nir/nir_lower_alu_to_scalar.c3
1 files changed, 3 insertions, 0 deletions
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