Lines Matching refs:parent
79 /* the parent of the current cf node being visited */
430 validate_src(&instr->parent, state, 0, 0);
436 nir_deref_instr *parent = nir_src_as_deref(instr->parent);
437 if (parent) {
441 validate_assert(state, instr->modes & parent->modes);
443 /* If our parent isn't a deref, just assert the mode is there */
456 /* We require the parent to be SSA. This may be lifted in the future */
457 validate_assert(state, instr->parent.is_ssa);
459 /* The parent pointer value must have the same number of components
462 validate_src(&instr->parent, state, nir_dest_bit_size(instr->dest),
465 nir_instr *parent_instr = instr->parent.ssa->parent_instr;
467 /* The parent must come from another deref instruction */
470 nir_deref_instr *parent = nir_instr_as_deref(parent_instr);
472 validate_assert(state, instr->modes == parent->modes);
476 validate_assert(state, glsl_type_is_struct_or_ifc(parent->type));
478 instr->strct.index < glsl_get_length(parent->type));
480 glsl_get_struct_field(parent->type, instr->strct.index));
490 validate_assert(state, glsl_type_is_array(parent->type) ||
491 glsl_type_is_matrix(parent->type) ||
492 glsl_type_is_vector(parent->type));
495 validate_assert(state, glsl_type_is_array(parent->type) ||
496 glsl_type_is_matrix(parent->type));
499 instr->type == glsl_get_array_element(parent->type));
508 /* ptr_as_array derefs must have a parent that is either an array,
509 * ptr_as_array, or cast. If the parent is a cast, we get the stride
513 parent->deref_type == nir_deref_type_array ||
514 parent->deref_type == nir_deref_type_ptr_as_array ||
515 parent->deref_type == nir_deref_type_cast);
1249 validate_assert(state, block->cf_node.parent == state->parent_node);
1322 validate_assert(state, block->cf_node.parent == &state->impl->cf_node);
1398 validate_assert(state, node->parent == state->parent_node);
1622 validate_assert(state, impl->cf_node.parent == NULL);