From: Alyssa Rosenzweig Date: Thu, 6 Jun 2019 18:19:44 +0000 (-0700) Subject: panfrost/midgard: Use fancy iterator X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d3ad8d6b480266054f8045a4f3a8111aec2655db;p=mesa.git panfrost/midgard: Use fancy iterator Trivial cleanup. Signed-off-by: Alyssa Rosenzweig --- diff --git a/src/gallium/drivers/panfrost/midgard/midgard_compile.c b/src/gallium/drivers/panfrost/midgard/midgard_compile.c index faf5d086518..f29f938215a 100644 --- a/src/gallium/drivers/panfrost/midgard/midgard_compile.c +++ b/src/gallium/drivers/panfrost/midgard/midgard_compile.c @@ -2587,7 +2587,7 @@ midgard_compile_shader_nir(nir_shader *nir, midgard_program *program, bool is_bl * last is an ALU, then it's also 1... */ mir_foreach_block(ctx, block) { - util_dynarray_foreach(&block->bundles, midgard_bundle, bundle) { + mir_foreach_bundle_in_block(block, bundle) { int lookahead = 1; if (current_bundle + 1 < bundle_count) {