[Mesa-dev] [PATCH 3/8] nir: Properly invalidate metadata in nir_split_var_copies().
Kenneth Graunke
kenneth at whitecape.org
Tue Nov 3 00:31:17 PST 2015
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
---
src/glsl/nir/nir_split_var_copies.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/glsl/nir/nir_split_var_copies.c b/src/glsl/nir/nir_split_var_copies.c
index d2ea58a..d463f7b 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;
}
--
2.6.2
More information about the mesa-dev
mailing list