Home
last modified time | relevance | path

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

/third_party/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 const_array_offset += 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()
/third_party/mesa3d/src/freedreno/vulkan/
Dtu_shader.c357 nir_ssa_def *arr_index = nir_ssa_for_src(b, deref->arr.index, 1); in build_bindless() local
359 nir_imul_imm(b, arr_index, 2)); in build_bindless()
382 nir_ssa_def *arr_index = nir_ssa_for_src(b, deref->arr.index, 1); in build_bindless() local
384 nir_imul_imm(b, arr_index, descriptor_stride)); in build_bindless()
/third_party/mesa3d/src/intel/vulkan/
Danv_nir_apply_pipeline_layout.c1174 unsigned arr_index = MIN2(nir_src_as_uint(deref->arr.index), array_size - 1); in lower_tex_deref() local
1183 for (int i = 0; i < arr_index; i++) in lower_tex_deref()
1187 *base_index += arr_index; in lower_tex_deref()
/third_party/mesa3d/src/compiler/spirv/
Dvtn_variables.c456 nir_ssa_def *arr_index = in vtn_pointer_dereference() local
459 tail = nir_build_deref_array(&b->nb, tail, arr_index); in vtn_pointer_dereference()