[Mesa-stable] [PATCH 1/3] nir: Call nir_metadata_preserve from nir_lower_alu_to_scalar().

Kenneth Graunke kenneth at whitecape.org
Wed Sep 14 00:15:03 UTC 2016


This is mandatory.

Cc: mesa-stable at lists.freedesktop.org
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
---
 src/compiler/nir/nir_lower_alu_to_scalar.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/compiler/nir/nir_lower_alu_to_scalar.c b/src/compiler/nir/nir_lower_alu_to_scalar.c
index 4f72cf7..a84fbdf 100644
--- a/src/compiler/nir/nir_lower_alu_to_scalar.c
+++ b/src/compiler/nir/nir_lower_alu_to_scalar.c
@@ -254,6 +254,9 @@ nir_lower_alu_to_scalar_impl(nir_function_impl *impl)
             lower_alu_instr_scalar(nir_instr_as_alu(instr), &builder);
       }
    }
+
+   nir_metadata_preserve(impl, nir_metadata_block_index |
+                               nir_metadata_dominance);
 }
 
 void
-- 
2.9.3



More information about the mesa-stable mailing list