Mesa (master): nir/gcm: Call nir_metadata_preserve

Jason Ekstrand jekstrand at kemper.freedesktop.org
Fri Sep 9 03:53:23 UTC 2016


Module: Mesa
Branch: master
Commit: 99ff4b3eb21ccc5df670e4dc62073cee96d07f23
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=99ff4b3eb21ccc5df670e4dc62073cee96d07f23

Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Wed Aug 10 14:34:37 2016 -0700

nir/gcm: Call nir_metadata_preserve

Signed-off-by: Jason Ekstrand <jason at jlekstrand.net>
Reviewed-by: Eric Anholt <eric at anholt.net>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

---

 src/compiler/nir/nir_opt_gcm.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/compiler/nir/nir_opt_gcm.c b/src/compiler/nir/nir_opt_gcm.c
index 84e32ef..02a9348 100644
--- a/src/compiler/nir/nir_opt_gcm.c
+++ b/src/compiler/nir/nir_opt_gcm.c
@@ -483,6 +483,9 @@ opt_gcm_impl(nir_function_impl *impl)
    }
 
    ralloc_free(state.blocks);
+
+   nir_metadata_preserve(impl, nir_metadata_block_index |
+                               nir_metadata_dominance);
 }
 
 void




More information about the mesa-commit mailing list