projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db35177
)
nir/nir_worklist: fixup for new foreach_block()
author
Connor Abbott
<cwabbott0@gmail.com>
Tue, 12 Apr 2016 19:16:14 +0000
(15:16 -0400)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Thu, 28 Apr 2016 22:52:17 +0000
(15:52 -0700)
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir_worklist.c
patch
|
blob
|
history
diff --git
a/src/compiler/nir/nir_worklist.c
b/src/compiler/nir/nir_worklist.c
index d1ecdc4d6631976be3baebf1530662cec1c87ce4..3ae2770288b446c41a36866be3d72ee535d9bf4c 100644
(file)
--- 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_call(impl, worklist_add_block, w);
+ nir_foreach_block(block, impl) {
+ nir_block_worklist_push_tail(w, block);
+ }
}
void