summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2015-11-02 21:05:08 -0800
committerKenneth Graunke <kenneth@whitecape.org>2015-11-03 17:06:48 -0800
commit8bb44510fca5315bbdd61502c72c22c7198c0daf (patch)
treea85204cc0d76ba4eeb4e4650a094a6fdc9261d40
parentaea40091f003f8772afce3562b0f8c6a17dad07f (diff)
nir: Properly invalidate metadata in nir_split_var_copies().
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com> Reviewed-by: Eduardo Lima Mitev <elima@igalia.com> Cc: mesa-stable@lists.freedesktop.org
-rw-r--r--src/glsl/nir/nir_split_var_copies.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/glsl/nir/nir_split_var_copies.c b/src/glsl/nir/nir_split_var_copies.c
index d2ea58a8b7..d463f7bdae 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;
}