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

Author: Kenneth Graunke <[email protected]>
Date:   Mon Nov  2 21:21:25 2015 -0800

nir: Properly invalidate metadata in nir_opt_copy_prop().

Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Reviewed-by: Eduardo Lima Mitev <[email protected]>
Cc: [email protected]

---

 src/glsl/nir/nir_opt_copy_propagate.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/glsl/nir/nir_opt_copy_propagate.c 
b/src/glsl/nir/nir_opt_copy_propagate.c
index 96520f8..7d8bdd7 100644
--- a/src/glsl/nir/nir_opt_copy_propagate.c
+++ b/src/glsl/nir/nir_opt_copy_propagate.c
@@ -262,6 +262,12 @@ nir_copy_prop_impl(nir_function_impl *impl)
    bool progress = false;
 
    nir_foreach_block(impl, copy_prop_block, &progress);
+
+   if (progress) {
+      nir_metadata_preserve(impl, nir_metadata_block_index |
+                                  nir_metadata_dominance);
+   }
+
    return progress;
 }
 

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to