From 6023943b81579be954f884e5317d8124b760a433 Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Sat, 15 Jul 2023 00:08:54 -0500 Subject: [PATCH] nv50/ir: Run nir_divergence_analysis before out-of-SSA We don't actually use or need this information but it gets generated by nir_opt_non_uniform_access() and stale divergence information can cause out-of-SSA to assert in parallel copy lowering. Reviewed-by: M Henning Reviewed-by: Karol Herbst Part-of: --- src/nouveau/codegen/nv50_ir_from_nir.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nouveau/codegen/nv50_ir_from_nir.cpp b/src/nouveau/codegen/nv50_ir_from_nir.cpp index c044ce4..e0eeaeb 100644 --- a/src/nouveau/codegen/nv50_ir_from_nir.cpp +++ b/src/nouveau/codegen/nv50_ir_from_nir.cpp @@ -3347,6 +3347,7 @@ Converter::run() NIR_PASS_V(nir, nir_lower_bool_to_int32); NIR_PASS_V(nir, nir_lower_bit_size, Converter::lowerBitSizeCB, this); + NIR_PASS_V(nir, nir_divergence_analysis); NIR_PASS_V(nir, nir_convert_from_ssa, true, true); // Garbage collect dead instructions -- 2.7.4