[Mesa-dev] [PATCH 43/47] nir/validate: fixup for new foreach_block()
Connor Abbott
cwabbott0 at gmail.com
Wed Apr 13 04:35:22 UTC 2016
Signed-off-by: Connor Abbott <cwabbott0 at gmail.com>
---
src/compiler/nir/nir_validate.c | 14 ++++----------
1 file changed, 4 insertions(+), 10 deletions(-)
diff --git a/src/compiler/nir/nir_validate.c b/src/compiler/nir/nir_validate.c
index 9f18d1c..af126f8 100644
--- a/src/compiler/nir/nir_validate.c
+++ b/src/compiler/nir/nir_validate.c
@@ -954,15 +954,6 @@ postvalidate_ssa_def(nir_ssa_def *def, void *void_state)
return true;
}
-static bool
-postvalidate_ssa_defs_block(nir_block *block, void *state)
-{
- nir_foreach_instr(block, instr)
- nir_foreach_ssa_def(instr, postvalidate_ssa_def, state);
-
- return true;
-}
-
static void
validate_function_impl(nir_function_impl *impl, validate_state *state)
{
@@ -1022,7 +1013,10 @@ validate_function_impl(nir_function_impl *impl, validate_state *state)
postvalidate_reg_decl(reg, state);
}
- nir_foreach_block(impl, postvalidate_ssa_defs_block, state);
+ nir_foreach_block(impl, block) {
+ nir_foreach_instr(block, instr)
+ nir_foreach_ssa_def(instr, postvalidate_ssa_def, state);
+ }
}
static void
--
2.5.0
More information about the mesa-dev
mailing list