[Mesa-dev] [PATCH 17/47] nir/lower_io: adapt to new foreach_block()
Connor Abbott
cwabbott0 at gmail.com
Wed Apr 13 04:34:56 UTC 2016
Signed-off-by: Connor Abbott <cwabbott0 at gmail.com>
---
src/compiler/nir/nir_lower_io.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/compiler/nir/nir_lower_io.c b/src/compiler/nir/nir_lower_io.c
index d9af8bf..ef6a6ae 100644
--- a/src/compiler/nir/nir_lower_io.c
+++ b/src/compiler/nir/nir_lower_io.c
@@ -211,10 +211,9 @@ atomic_op(nir_intrinsic_op opcode)
}
static bool
-nir_lower_io_block(nir_block *block, void *void_state)
+nir_lower_io_block(nir_block *block,
+ struct lower_io_state *state)
{
- struct lower_io_state *state = void_state;
-
nir_builder *b = &state->builder;
nir_foreach_instr_safe(block, instr) {
@@ -398,7 +397,9 @@ nir_lower_io_impl(nir_function_impl *impl,
state.mode = mode;
state.type_size = type_size;
- nir_foreach_block(impl, nir_lower_io_block, &state);
+ nir_foreach_block(impl, block) {
+ nir_lower_io_block(block, &state);
+ }
nir_metadata_preserve(impl, nir_metadata_block_index |
nir_metadata_dominance);
--
2.5.0
More information about the mesa-dev
mailing list