[Mesa-dev] [PATCH 25/47] nir/lower_two_sided_color: fixup for new foreach_block()
Connor Abbott
cwabbott0 at gmail.com
Wed Apr 13 04:35:04 UTC 2016
Signed-off-by: Connor Abbott <cwabbott0 at gmail.com>
---
src/compiler/nir/nir_lower_two_sided_color.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/compiler/nir/nir_lower_two_sided_color.c b/src/compiler/nir/nir_lower_two_sided_color.c
index c7fb67e..6494b5f 100644
--- a/src/compiler/nir/nir_lower_two_sided_color.c
+++ b/src/compiler/nir/nir_lower_two_sided_color.c
@@ -133,9 +133,9 @@ setup_inputs(lower_2side_state *state)
}
static bool
-nir_lower_two_sided_color_block(nir_block *block, void *void_state)
+nir_lower_two_sided_color_block(nir_block *block,
+ lower_2side_state *state)
{
- lower_2side_state *state = void_state;
nir_builder *b = &state->b;
nir_foreach_instr_safe(block, instr) {
@@ -185,7 +185,9 @@ nir_lower_two_sided_color_impl(nir_function_impl *impl,
nir_builder_init(b, impl);
- nir_foreach_block(impl, nir_lower_two_sided_color_block, state);
+ nir_foreach_block(impl, block) {
+ nir_lower_two_sided_color_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