static void validate_src(nir_src *src, validate_state *state) { if (state->instr) assert(src->parent_instr == state->instr); else assert(src->parent_if == state->if_stmt); if (src->is_ssa) validate_ssa_src(src, state); else validate_reg_src(src, state); }
static void validate_src(nir_src *src, validate_state *state, unsigned bit_size, unsigned num_components) { if (state->instr) validate_assert(state, src->parent_instr == state->instr); else validate_assert(state, src->parent_if == state->if_stmt); if (src->is_ssa) validate_ssa_src(src, state, bit_size, num_components); else validate_reg_src(src, state, bit_size, num_components); }