summaryrefslogtreecommitdiffstats
path: root/src/glsl/nir
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-04-23 17:10:42 -0700
committerJason Ekstrand <[email protected]>2015-05-08 17:16:13 -0700
commit7ee0216e2d576a02de9d938488a6d6ba55ccb115 (patch)
treea23d4e9c70ff4d35727b3bc090bffce8cdbd641f /src/glsl/nir
parentc4ac09e30e2520b0ac6d403eb6c77f23e7f24f49 (diff)
nir/validate: Validate SSA def parent instructions
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/glsl/nir')
-rw-r--r--src/glsl/nir/nir_validate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/nir/nir_validate.c b/src/glsl/nir/nir_validate.c
index a7aa79837da..35a853d1484 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,