Home
last modified time | relevance | path

Searched refs:src_tail (Results 1 – 5 of 5) sorted by relevance

/external/mesa3d/src/compiler/nir/
Dnir_split_var_copies.c86 nir_deref *dest_tail, nir_deref *src_tail, in split_var_copy_instr() argument
89 assert(src_tail->type == dest_tail->type); in split_var_copy_instr()
93 assert(src_tail->child == NULL); in split_var_copy_instr()
95 switch (glsl_get_base_type(src_tail->type)) { in split_var_copy_instr()
99 deref->deref.type = glsl_get_array_element(src_tail->type); in split_var_copy_instr()
108 src_tail->child = &deref->deref; in split_var_copy_instr()
112 dest_tail->child, src_tail->child, state); in split_var_copy_instr()
115 src_tail->child = NULL; in split_var_copy_instr()
128 for (unsigned i = 0; i < glsl_get_length(src_tail->type); i++) { in split_var_copy_instr()
130 deref->deref.type = glsl_get_struct_field(src_tail->type, i); in split_var_copy_instr()
[all …]
Dnir_lower_var_copies.c80 nir_deref *dest_tail, nir_deref *src_tail, in emit_copy_load_store() argument
84 nir_deref *src_arr_parent = deref_next_wildcard_parent(src_tail); in emit_copy_load_store()
114 src_tail = nir_deref_tail(src_tail); in emit_copy_load_store()
117 assert(src_tail->type == dest_tail->type); in emit_copy_load_store()
119 unsigned num_components = glsl_get_vector_elements(src_tail->type); in emit_copy_load_store()
120 unsigned bit_size = glsl_get_bit_size(src_tail->type); in emit_copy_load_store()
Dnir_opt_copy_prop_vars.c556 nir_deref *src_tail = &src->deref; in load_from_deref_entry_value() local
557 while (entry_tail->child && src_tail->child) { in load_from_deref_entry_value()
558 assert(src_tail->child->deref_type == entry_tail->child->deref_type); in load_from_deref_entry_value()
559 if (src_tail->child->deref_type == nir_deref_type_array) { in load_from_deref_entry_value()
561 nir_deref_array *src_arr = nir_deref_as_array(src_tail->child); in load_from_deref_entry_value()
569 src_tail = src_tail->child; in load_from_deref_entry_value()
589 if (src_tail->child) { in load_from_deref_entry_value()
594 value_tail->child = nir_deref_clone(src_tail->child, value_tail); in load_from_deref_entry_value()
/external/mesa3d/src/util/
Du_vector.c55 uint32_t offset, size, split, src_tail, dst_tail; in u_vector_add() local
63 src_tail = vector->tail & (vector->size - 1); in u_vector_add()
65 if (src_tail == 0) { in u_vector_add()
78 memcpy((char *)data + dst_tail, (char *)vector->data + src_tail, in u_vector_add()
/external/mesa3d/src/compiler/spirv/
Dvtn_variables.c556 nir_deref *src_tail = get_deref_tail(src); in vtn_local_load() local
557 struct vtn_ssa_value *val = vtn_create_ssa_value(b, src_tail->type); in vtn_local_load()
558 _vtn_local_load_store(b, true, src, src_tail, val); in vtn_local_load()
560 if (src_tail->child) { in vtn_local_load()
561 nir_deref_array *vec_deref = nir_deref_as_array(src_tail->child); in vtn_local_load()