[Mesa-dev] [RFC 1/9] nir/validate: Validate SSA def parent instructiosn
Jason Ekstrand
jason at jlekstrand.net
Fri Apr 24 16:31:58 PDT 2015
---
src/glsl/nir/nir_validate.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/glsl/nir/nir_validate.c b/src/glsl/nir/nir_validate.c
index a7aa798..35a853d 100644
--- a/src/glsl/nir/nir_validate.c
+++ b/src/glsl/nir/nir_validate.c
@@ -236,6 +236,8 @@ validate_ssa_def(nir_ssa_def *def, validate_state *state)
assert(!BITSET_TEST(state->ssa_defs_found, def->index));
BITSET_SET(state->ssa_defs_found, def->index);
+ assert(def->parent_instr == state->instr);
+
assert(def->num_components <= 4);
ssa_def_validate_state *def_state = ralloc(state->ssa_defs,
--
2.3.6
More information about the mesa-dev
mailing list