diff --git a/src/asahi/compiler/agx_compile.c b/src/asahi/compiler/agx_compile.c index e541017c883..8b857402dc1 100644 --- a/src/asahi/compiler/agx_compile.c +++ b/src/asahi/compiler/agx_compile.c @@ -3055,7 +3055,7 @@ agx_optimize_nir(nir_shader *nir, bool soft_fault, uint16_t *preamble_size) NIR_PASS(_, nir, nir_lower_pack); NIR_PASS(_, nir, nir_opt_algebraic); - NIR_PASS_V(nir, nir_divergence_analysis); + nir_divergence_analysis(nir); bool progress = false; static const nir_lower_subgroups_options subgroups_options = { diff --git a/src/broadcom/compiler/vir.c b/src/broadcom/compiler/vir.c index 3c06752a75f..8dc50164adc 100644 --- a/src/broadcom/compiler/vir.c +++ b/src/broadcom/compiler/vir.c @@ -1794,7 +1794,7 @@ v3d_attempt_compile(struct v3d_compile *c) NIR_PASS(_, c->s, nir_lower_bool_to_int32); NIR_PASS(_, c->s, nir_convert_to_lcssa, true, true); - NIR_PASS_V(c->s, nir_divergence_analysis); + nir_divergence_analysis(c->s); NIR_PASS(_, c->s, nir_convert_from_ssa, true, true); struct nir_schedule_options schedule_options = { diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index 48288fa533c..135775185ac 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -1662,7 +1662,7 @@ static void run_late_optimization_and_lowering_passes(struct si_nir_shader_ctx * NIR_PASS_V(nir, nir_clear_shared_memory, shared_size, chunk_size); } - NIR_PASS_V(nir, nir_divergence_analysis); /* required by ac_nir_flag_smem_for_loads */ + nir_divergence_analysis(nir); /* required by ac_nir_flag_smem_for_loads */ /* This is required by ac_nir_scalarize_overfetching_loads_callback. */ NIR_PASS(progress, nir, ac_nir_flag_smem_for_loads, sel->screen->info.gfx_level, !sel->info.base.use_aco_amd, false); diff --git a/src/intel/compiler/brw_nir.c b/src/intel/compiler/brw_nir.c index 4b853766517..760a4b9a549 100644 --- a/src/intel/compiler/brw_nir.c +++ b/src/intel/compiler/brw_nir.c @@ -2100,7 +2100,7 @@ brw_postprocess_nir(nir_shader *nir, const struct brw_compiler *compiler, * some assert on consistent divergence flags. */ NIR_PASS(_, nir, nir_convert_to_lcssa, true, true); - NIR_PASS_V(nir, nir_divergence_analysis); + nir_divergence_analysis(nir); OPT(nir_convert_from_ssa, true, true); diff --git a/src/intel/compiler/elk/elk_nir.c b/src/intel/compiler/elk/elk_nir.c index 71aa9c200d1..9326fd82fd8 100644 --- a/src/intel/compiler/elk/elk_nir.c +++ b/src/intel/compiler/elk/elk_nir.c @@ -1534,7 +1534,7 @@ elk_postprocess_nir(nir_shader *nir, const struct elk_compiler *compiler, * some assert on consistent divergence flags. */ NIR_PASS(_, nir, nir_convert_to_lcssa, true, true); - NIR_PASS_V(nir, nir_divergence_analysis); + nir_divergence_analysis(nir); OPT(nir_convert_from_ssa, true, true); diff --git a/src/nouveau/codegen/nv50_ir_from_nir.cpp b/src/nouveau/codegen/nv50_ir_from_nir.cpp index ccb32c29e7d..551f3dae6e8 100644 --- a/src/nouveau/codegen/nv50_ir_from_nir.cpp +++ b/src/nouveau/codegen/nv50_ir_from_nir.cpp @@ -3504,7 +3504,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_divergence_analysis(nir); NIR_PASS_V(nir, nir_convert_from_ssa, true, true); // Garbage collect dead instructions