[Mesa-dev] [PATCH 42/47] nir/nir_worklist: fixup for new foreach_block()
Connor Abbott
cwabbott0 at gmail.com
Wed Apr 13 04:35:21 UTC 2016
Signed-off-by: Connor Abbott <cwabbott0 at gmail.com>
---
src/compiler/nir/nir_worklist.c | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)
diff --git a/src/compiler/nir/nir_worklist.c b/src/compiler/nir/nir_worklist.c
index 3087a1d..48aab77 100644
--- a/src/compiler/nir/nir_worklist.c
+++ b/src/compiler/nir/nir_worklist.c
@@ -47,18 +47,12 @@ nir_block_worklist_fini(nir_block_worklist *w)
ralloc_free(w->blocks);
}
-static bool
-worklist_add_block(nir_block *block, void *w)
-{
- nir_block_worklist_push_tail(w, block);
-
- return true;
-}
-
void
nir_block_worklist_add_all(nir_block_worklist *w, nir_function_impl *impl)
{
- nir_foreach_block(impl, worklist_add_block, w);
+ nir_foreach_block(impl, block) {
+ nir_block_worklist_push_tail(w, block);
+ }
}
void
--
2.5.0
More information about the mesa-dev
mailing list