aboutsummaryrefslogtreecommitdiffstats
path: root/src/glsl/nir
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2015-11-02 21:05:08 -0800
committerKenneth Graunke <[email protected]>2015-11-03 17:06:48 -0800
commit8bb44510fca5315bbdd61502c72c22c7198c0daf (patch)
treea85204cc0d76ba4eeb4e4650a094a6fdc9261d40 /src/glsl/nir
parentaea40091f003f8772afce3562b0f8c6a17dad07f (diff)
nir: Properly invalidate metadata in nir_split_var_copies().
Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]> Reviewed-by: Eduardo Lima Mitev <[email protected]> Cc: [email protected]
Diffstat (limited to 'src/glsl/nir')
-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 d2ea58a8b7c..d463f7bdae9 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;
}