mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
nir/validate: Validate SSA def parent instructions
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
This commit is contained in:
parent
c4ac09e30e
commit
7ee0216e2d
1 changed files with 2 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue