Home
last modified time | relevance | path

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

/external/mesa3d/src/compiler/nir/
Dnir_opt_copy_prop_vars.c478 nir_deref_array *deref_arr = nir_deref_as_array(deref_tail); in specialize_wildcards() local
481 ret_arr->deref.type = deref_arr->deref.type; in specialize_wildcards()
482 ret_arr->deref_array_type = deref_arr->deref_array_type; in specialize_wildcards()
484 switch (deref_arr->deref_array_type) { in specialize_wildcards()
486 ret_arr->base_offset = deref_arr->base_offset; in specialize_wildcards()
489 ret_arr->base_offset = deref_arr->base_offset; in specialize_wildcards()
490 assert(deref_arr->indirect.is_ssa); in specialize_wildcards()
491 ret_arr->indirect = deref_arr->indirect; in specialize_wildcards()
/external/mesa3d/src/mesa/program/
Dprog_to_nir.c178 nir_deref_array *deref_arr = in ptn_get_src() local
180 deref_arr->deref.type = glsl_vec4_type(); in ptn_get_src()
181 load->variables[0]->deref.child = &deref_arr->deref; in ptn_get_src()
184 deref_arr->deref_array_type = nir_deref_array_type_indirect; in ptn_get_src()
196 deref_arr->base_offset = 0; in ptn_get_src()
198 deref_arr->base_offset = prog_src->Index; in ptn_get_src()
200 deref_arr->indirect = nir_src_for_ssa(reladdr); in ptn_get_src()
202 deref_arr->deref_array_type = nir_deref_array_type_direct; in ptn_get_src()
203 deref_arr->base_offset = prog_src->Index; in ptn_get_src()
Dir_to_mesa.cpp1651 ir_dereference_array *deref_arr = deref->as_dereference_array(); in calc_sampler_offsets() local
1653 void *mem_ctx = ralloc_parent(deref_arr); in calc_sampler_offsets()
1655 deref_arr->array_index->constant_expression_value(mem_ctx); in calc_sampler_offsets()
1673 *array_elements *= deref_arr->array->type->length; in calc_sampler_offsets()
1675 calc_sampler_offsets(prog, deref_arr->array->as_dereference(), in calc_sampler_offsets()
/external/mesa3d/src/compiler/spirv/
Dvtn_variables.c425 nir_deref_array *deref_arr = nir_deref_array_create(b); in vtn_pointer_to_deref() local
426 deref_arr->deref.type = deref_type->type; in vtn_pointer_to_deref()
429 deref_arr->deref_array_type = nir_deref_array_type_direct; in vtn_pointer_to_deref()
430 deref_arr->base_offset = chain->link[i].id; in vtn_pointer_to_deref()
433 deref_arr->deref_array_type = nir_deref_array_type_indirect; in vtn_pointer_to_deref()
434 deref_arr->base_offset = 0; in vtn_pointer_to_deref()
435 deref_arr->indirect = in vtn_pointer_to_deref()
438 tail->child = &deref_arr->deref; in vtn_pointer_to_deref()
508 nir_deref_array *deref_arr = nir_deref_array_create(b); in _vtn_local_load_store() local
509 deref_arr->deref_array_type = nir_deref_array_type_direct; in _vtn_local_load_store()
[all …]
/external/mesa3d/src/mesa/state_tracker/
Dst_glsl_to_tgsi.cpp3623 ir_dereference_array *deref_arr = ir->as_dereference_array(); in get_image_qualifiers() local
3624 get_image_qualifiers((ir_dereference *)deref_arr->array, type, in get_image_qualifiers()
3961 ir_dereference_array *deref_arr = tail->as_dereference_array(); in calc_deref_offsets() local
3963 void *mem_ctx = ralloc_parent(deref_arr); in calc_deref_offsets()
3965 deref_arr->array_index->constant_expression_value(mem_ctx); in calc_deref_offsets()
3975 deref_arr->array_index->accept(this); in calc_deref_offsets()
3991 *array_elements *= deref_arr->array->type->length; in calc_deref_offsets()
3993 … calc_deref_offsets(deref_arr->array->as_dereference(), array_elements, index, indirect, location); in calc_deref_offsets()