Mesa (master): nir: Properly invalidate metadata in nir_lower_vec_to_movs( ).

Kenneth Graunke kwg at kemper.freedesktop.org
Wed Nov 4 01:11:07 UTC 2015


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

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Mon Nov  2 21:38:56 2015 -0800

nir: Properly invalidate metadata in nir_lower_vec_to_movs().

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Jason Ekstrand <jason.ekstrand at intel.com>
Reviewed-by: Eduardo Lima Mitev <elima at igalia.com>
Cc: mesa-stable at lists.freedesktop.org

---

 src/glsl/nir/nir_lower_vec_to_movs.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/glsl/nir/nir_lower_vec_to_movs.c b/src/glsl/nir/nir_lower_vec_to_movs.c
index c08b721..736a66c 100644
--- a/src/glsl/nir/nir_lower_vec_to_movs.c
+++ b/src/glsl/nir/nir_lower_vec_to_movs.c
@@ -288,6 +288,11 @@ nir_lower_vec_to_movs_impl(nir_function_impl *impl)
 
    nir_foreach_block(impl, lower_vec_to_movs_block, &state);
 
+   if (state.progress) {
+      nir_metadata_preserve(impl, nir_metadata_block_index |
+                                  nir_metadata_dominance);
+   }
+
    return state.progress;
 }
 




More information about the mesa-commit mailing list