Searched refs:ndarr (Results 1 – 3 of 3) sorted by relevance
/external/mesa3d/src/compiler/nir/ |
D | nir_lower_io_to_scalar.c | 155 nir_deref_array *ndarr = nir_deref_array_create(parent); in clone_deref_array() local 157 ndarr->deref.type = glsl_get_array_element(parent->type); in clone_deref_array() 159 ndarr->deref.child = in clone_deref_array() 161 &ndarr->deref)->deref; in clone_deref_array() 163 ndarr->deref_array_type = darr->deref_array_type; in clone_deref_array() 164 ndarr->base_offset = darr->base_offset; in clone_deref_array() 165 if (ndarr->deref_array_type == nir_deref_array_type_indirect) in clone_deref_array() 166 nir_src_copy(&ndarr->indirect, &darr->indirect, parent); in clone_deref_array() 168 return ndarr; in clone_deref_array()
|
D | nir_lower_io_arrays_to_elements.c | 114 nir_deref_array *ndarr = nir_deref_array_create(parent); in create_array_deref() local 116 ndarr->deref.type = glsl_get_array_element(parent->type); in create_array_deref() 117 ndarr->deref_array_type = darr->deref_array_type; in create_array_deref() 118 ndarr->base_offset = darr->base_offset; in create_array_deref() 120 if (ndarr->deref_array_type == nir_deref_array_type_indirect) in create_array_deref() 121 nir_src_copy(&ndarr->indirect, &darr->indirect, parent); in create_array_deref() 123 element_intr->variables[0]->deref.child = &ndarr->deref; in create_array_deref()
|
D | nir_clone.c | 282 nir_deref_array *ndarr = nir_deref_array_create(parent); in clone_deref_array() local 284 ndarr->deref.type = darr->deref.type; in clone_deref_array() 286 ndarr->deref.child = clone_deref(state, darr->deref.child, in clone_deref_array() 287 ninstr, &ndarr->deref); in clone_deref_array() 289 ndarr->deref_array_type = darr->deref_array_type; in clone_deref_array() 290 ndarr->base_offset = darr->base_offset; in clone_deref_array() 291 if (ndarr->deref_array_type == nir_deref_array_type_indirect) in clone_deref_array() 292 __clone_src(state, ninstr, &ndarr->indirect, &darr->indirect); in clone_deref_array() 294 return ndarr; in clone_deref_array()
|