Home
last modified time | relevance | path

Searched refs:arr_index (Results 1 – 6 of 6) sorted by relevance

/external/mesa3d/src/compiler/glsl/
Dgl_nir_lower_buffers.c51 unsigned arr_index = nir_src_as_uint(deref->arr.index); in get_block_array_index() local
54 block_name = ralloc_asprintf(b->shader, "[%u]%s", arr_index, in get_block_array_index()
57 binding += arr_index * array_elements; in get_block_array_index()
59 nir_ssa_def *arr_index = nir_ssa_for_src(b, deref->arr.index, 1); in get_block_array_index() local
60 arr_index = nir_umin(b, arr_index, nir_imm_int(b, arr_size - 1)); in get_block_array_index()
61 nir_ssa_def *arr_offset = nir_amul_imm(b, arr_index, array_elements); in get_block_array_index()
Dlower_vector_derefs.cpp100 ir_variable *const arr_index = in visit_enter() local
102 factory.emit(assign(arr_index, deref->array_index)); in visit_enter()
118 equal(arr_index, cmp_index), in visit_enter()
125 equal(arr_index, cmp_index)); in visit_enter()
/external/blktrace/iowatcher/
Dplot.c198 int arr_index; in set_gdd_bit() local
215 arr_index = bit_index / 8; in set_gdd_bit()
218 gdd->data[arr_index] |= 1 << bit_mod; in set_gdd_bit()
985 int arr_index; in svg_io_graph_movie() local
999 arr_index = bit_index / 8; in svg_io_graph_movie()
1002 if (arr_index < 0) in svg_io_graph_movie()
1004 val = gdd->data[arr_index]; in svg_io_graph_movie()
1024 int arr_index; in svg_io_graph() local
1032 arr_index = bit_index / 8; in svg_io_graph()
1035 if (arr_index < 0) in svg_io_graph()
[all …]
/external/mesa3d/src/intel/vulkan/
Danv_nir_apply_pipeline_layout.c733 nir_ssa_def *arr_index = nir_ssa_for_src(b, deref->arr.index, 1); in build_descriptor_load() local
735 arr_index = nir_umin(b, arr_index, nir_imm_int(b, array_size - 1)); in build_descriptor_load()
738 nir_imul_imm(b, arr_index, descriptor_size)); in build_descriptor_load()
923 unsigned arr_index = MIN2(nir_src_as_uint(deref->arr.index), array_size - 1); in lower_tex_deref() local
932 for (int i = 0; i < arr_index; i++) in lower_tex_deref()
936 *base_index += arr_index; in lower_tex_deref()
/external/mesa3d/src/freedreno/vulkan/
Dtu_shader.c364 nir_ssa_def *arr_index = nir_ssa_for_src(b, deref->arr.index, 1); in build_bindless() local
366 nir_imul_imm(b, arr_index, 2)); in build_bindless()
389 nir_ssa_def *arr_index = nir_ssa_for_src(b, deref->arr.index, 1); in build_bindless() local
391 nir_imul_imm(b, arr_index, descriptor_stride)); in build_bindless()
/external/mesa3d/src/compiler/spirv/
Dvtn_variables.c458 nir_ssa_def *arr_index = in vtn_pointer_dereference() local
461 tail = nir_build_deref_array(&b->nb, tail, arr_index); in vtn_pointer_dereference()