From: Faith Ekstrand Date: Sat, 15 Jul 2023 05:08:54 +0000 (-0500) Subject: nv50/ir: Run nir_divergence_analysis before out-of-SSA X-Git-Tag: upstream/23.3.3~4864 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6023943b81579be954f884e5317d8124b760a433;p=platform%2Fupstream%2Fmesa.git 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: --- 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