nir: Properly invalidate metadata in nir_split_var_copies().
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 3 Nov 2015 05:05:08 +0000 (21:05 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 4 Nov 2015 01:06:48 +0000 (17:06 -0800)
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
src/glsl/nir/nir_split_var_copies.c

index d2ea58a8b7c6d9f781d41739d769134c5a72b2e5..d463f7bdae95f5a572757b4b6093e88ecd8f2a49 100644 (file)
@@ -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;
 }