Home
last modified time | relevance | path

Searched refs:array_index (Results 1 – 25 of 143) sorted by relevance

123456

/third_party/mesa3d/src/mesa/main/
Dshader_query.cpp46 unsigned array_index);
238 unsigned array_index = 0; in _mesa_GetAttribLocation() local
241 &array_index); in _mesa_GetAttribLocation()
246 return program_resource_location(res, array_index); in _mesa_GetAttribLocation()
447 unsigned array_index = 0; in _mesa_GetFragDataLocation() local
450 &array_index); in _mesa_GetFragDataLocation()
455 return program_resource_location(res, array_index); in _mesa_GetFragDataLocation()
617 valid_array_index(const GLchar *name, int len, unsigned *array_index) in valid_array_index() argument
626 if (array_index) in valid_array_index()
627 *array_index = idx; in valid_array_index()
[all …]
Dprogram_resource.c156 unsigned array_index = 0; in _mesa_GetProgramResourceIndex() local
200 &array_index); in _mesa_GetProgramResourceIndex()
201 if (!res || array_index > 0) in _mesa_GetProgramResourceIndex()
/third_party/mesa3d/src/compiler/glsl/
Dlower_vector_derefs.cpp80 deref->array_index->constant_expression_value(mem_ctx); in visit_enter()
101 factory.make_temp(deref->array_index->type, "index_tmp"); in visit_enter()
102 factory.emit(assign(arr_index, deref->array_index)); in visit_enter()
106 ir_constant::zero(factory.mem_ctx, deref->array_index->type); in visit_enter()
134 deref->array_index); in visit_enter()
192 deref->array_index); in handle_rvalue()
Dlower_distance.cpp226 ir_rvalue *&array_index, in create_indices() argument
247 array_index = new(ctx) ir_constant(const_val / 4); in create_indices()
262 array_index = new(ctx) ir_expression( in create_indices()
358 ir_dereference_array(*new_var, array_ref->array_index); in lower_distance_vec8()
381 ir_rvalue *array_index; in handle_rvalue() local
383 this->create_indices(array_deref->array_index, array_index, swizzle_index); in handle_rvalue()
387 new(mem_ctx) ir_dereference_array(lowered_vec8, array_index); in handle_rvalue()
Dgl_nir_link_uniform_blocks.c465 unsigned array_index, in fill_block() argument
479 block->Binding = var->data.binding + array_index; in fill_block()
509 block->linearized_array_index = array_index; in fill_block()
574 for (unsigned array_index = 0; array_index < buffer_count; array_index++) { in link_linked_shader_uniform_blocks() local
576 array_index, prog, shader->Stage); in link_linked_shader_uniform_blocks()
Dir_set_program_inouts.cpp354 if (try_mark_partial_variable(deref_var->var, ir->array_index)) in visit_enter()
360 inner_array->array_index->accept(this); in visit_enter()
377 ir->array_index->accept(this); in visit_enter()
383 if (try_mark_partial_variable(deref_var->var, ir->array_index)) in visit_enter()
Dopt_function_inlining.cpp115 if (deref->array_index->ir_type != ir_type_constant) { in visit_enter()
120 index = new(ctx) ir_variable(deref->array_index->type, "saved_idx", ir_var_temporary); in visit_enter()
124 deref->array_index); in visit_enter()
127 deref->array_index = new(ctx) ir_dereference_variable(index); in visit_enter()
Dopt_array_splitting.cpp239 if (!ir->array_index->as_constant()) { in visit_enter()
253 if (ir->array_index->as_dereference_array()) in visit_enter()
254 visit_enter(ir->array_index->as_dereference_array()); in visit_enter()
360 ir_constant *constant = deref_array->array_index->as_constant(); in split_deref()
/third_party/json/include/nlohmann/detail/iterators/
Diteration_proxy.hpp37 std::size_t array_index = 0; member in nlohmann::detail::iteration_proxy_value
60 ++array_index; in operator ++()
87 if (array_index != array_index_last) in key()
89 int_to_string( array_index_str, array_index ); in key()
90 array_index_last = array_index; in key()
/third_party/mesa3d/src/panfrost/vulkan/
Dpanvk_vX_nir_lower_descriptors.c97 nir_ssa_def *array_index, nir_address_format addr_format, in build_res_index() argument
117 return nir_vec2(b, nir_imm_int(b, packed), array_index); in build_res_index()
134 array_index); in build_res_index()
154 array_index); in build_res_index()
207 nir_ssa_def *array_index = nir_channel(b, res_index, 1); in build_buffer_addr_for_res_index() local
212 array_index = nir_umin(b, array_index, array_max); in build_buffer_addr_for_res_index()
214 return nir_vec2(b, nir_iadd(b, surface_index, array_index), in build_buffer_addr_for_res_index()
223 nir_ssa_def *array_index = nir_channel(b, res_index, 3); in build_buffer_addr_for_res_index() local
229 array_index = nir_umin(b, array_index, array_max); in build_buffer_addr_for_res_index()
232 nir_imul(b, array_index, desc_ubo_stride)); in build_buffer_addr_for_res_index()
/third_party/skia/third_party/externals/tint/src/
Dintrinsics.def428 …32, texture: texture_2d_array<T>, sampler: sampler, coords: vec2<f32>, array_index: i32) -> vec4<T>
429 …32, texture: texture_2d_array<T>, sampler: sampler, coords: vec2<f32>, array_index: i32, offset: v…
431 …, texture: texture_cube_array<T>, sampler: sampler, coords: vec3<f32>, array_index: i32) -> vec4<T>
434 fn textureGather(texture: texture_depth_2d_array, sampler: sampler, coords: vec2<f32>, array_index:…
435 fn textureGather(texture: texture_depth_2d_array, sampler: sampler, coords: vec2<f32>, array_index:…
437 …exture: texture_depth_cube_array, sampler: sampler, coords: vec3<f32>, array_index: i32) -> vec4<f…
440 …exture_depth_2d_array, sampler: sampler_comparison, coords: vec2<f32>, array_index: i32, depth_ref…
441 …exture_depth_2d_array, sampler: sampler_comparison, coords: vec2<f32>, array_index: i32, depth_ref…
443 …ture_depth_cube_array, sampler: sampler_comparison, coords: vec3<f32>, array_index: i32, depth_ref…
464 …e(texture: texture_2d_array<f32>, sampler: sampler, coords: vec2<f32>, array_index: i32) -> vec4<f…
[all …]
/third_party/mesa3d/src/broadcom/vulkan/
Dv3dv_descriptor_set.c38 uint32_t array_index) in descriptor_bo_map() argument
50 array_index * bo_size; in descriptor_bo_map()
92 uint32_t array_index = map->array_index[index]; in v3dv_descriptor_map_get_descriptor() local
93 assert(array_index < binding_layout->array_size); in v3dv_descriptor_map_get_descriptor()
98 binding_layout->dynamic_offset_index + array_index; in v3dv_descriptor_map_get_descriptor()
103 return &set->descriptors[binding_layout->descriptor_index + array_index]; in v3dv_descriptor_map_get_descriptor()
140 uint32_t array_index = map->array_index[index]; in v3dv_descriptor_map_get_descriptor_bo() local
141 assert(array_index < binding_layout->array_size); in v3dv_descriptor_map_get_descriptor_bo()
146 array_index * v3dv_X(device, descriptor_bo_size)(binding_layout->type), in v3dv_descriptor_map_get_descriptor_bo()
179 uint32_t array_index = map->array_index[index]; in v3dv_descriptor_map_get_sampler() local
[all …]
/third_party/jerryscript/tests/jerry/es2015/
DtypedArray-find-index.js66 var array_index = 0;
69 assert (array_index++ === index);
85 array_index = 0;
DtypedArray-find.js66 var array_index = 0;
69 assert (array_index++ === index);
85 array_index = 0;
Darray-prototype-find-index.js65 var array_index = 0; variable
68 assert (array_index++ === index);
84 array_index = 0;
Darray-prototype-find.js65 var array_index = 0; variable
68 assert (array_index++ === index);
84 array_index = 0;
/third_party/mesa3d/src/amd/vulkan/
Dradv_nir_lower_ycbcr_textures.c250 unsigned array_index = 0; in try_lower_tex_ycbcr() local
255 array_index = nir_src_as_uint(deref->arr.index); in try_lower_tex_ycbcr()
256 array_index = MIN2(array_index, binding->array_size - 1); in try_lower_tex_ycbcr()
258 const struct radv_sampler_ycbcr_conversion_state *ycbcr_sampler = ycbcr_samplers + array_index; in try_lower_tex_ycbcr()
263 …bool unnormalized_coordinates = immutable_samplers[4 * array_index + 0] & S_008F30_FORCE_UNNORMALI… in try_lower_tex_ycbcr()
/third_party/vk-gl-cts/external/openglcts/modules/glesext/gpu_shader5/
DesextcGPUShader5ImagesArrayIndexing.cpp129 for (glw::GLuint array_index = 0; array_index < m_array_size; ++array_index) in initTest() local
133 m_data_buffer[index + array_index * dataSize] = 1 + array_index; in initTest()
/third_party/json/include/nlohmann/detail/
Djson_pointer.hpp334 static typename BasicJsonType::size_type array_index(const std::string& s) in array_index() function in nlohmann::json_pointer
434 result = &result->operator[](array_index(reference_token)); in get_and_create()
518 ptr = &ptr->operator[](array_index(reference_token)); in get_unchecked()
569 ptr = &ptr->at(array_index(reference_token)); in get_checked()
624 ptr = &ptr->operator[](array_index(reference_token)); in get_unchecked()
674 ptr = &ptr->at(array_index(reference_token)); in get_checked()
745 const auto idx = array_index(reference_token); in contains()
/third_party/mesa3d/src/compiler/nir/
Dnir_lower_io_arrays_to_elements.c38 nir_ssa_def **array_index) in get_io_offset() argument
50 *array_index = nir_ssa_for_src(b, (*p)->arr.index, 1); in get_io_offset()
133 nir_ssa_def *array_index = NULL; in lower_array() local
138 &array_index); in lower_array()
168 assert(array_index); in lower_array()
169 element_deref = nir_build_deref_array(b, element_deref, array_index); in lower_array()
Dnir_lower_io.c231 nir_ssa_def **array_index, in get_io_offset() argument
244 if (array_index != NULL) { in get_io_offset()
246 *array_index = nir_ssa_for_src(b, (*p)->arr.index, 1); in get_io_offset()
294 nir_ssa_def *array_index, nir_variable *var, nir_ssa_def *offset, in emit_load() argument
311 assert(array_index != NULL); in emit_load()
314 assert(array_index == NULL); in emit_load()
330 op = array_index ? nir_intrinsic_load_per_vertex_input : in emit_load()
335 op = !array_index ? nir_intrinsic_load_output : in emit_load()
374 if (array_index) { in emit_load()
375 load->src[0] = nir_src_for_ssa(array_index); in emit_load()
[all …]
/third_party/mesa3d/src/intel/vulkan/
Danv_nir_lower_ycbcr_textures.c235 unsigned array_index = 0; in anv_nir_lower_ycbcr_textures_instr() local
240 array_index = nir_src_as_uint(deref->arr.index); in anv_nir_lower_ycbcr_textures_instr()
241 array_index = MIN2(array_index, binding->array_size - 1); in anv_nir_lower_ycbcr_textures_instr()
243 const struct anv_sampler *sampler = binding->immutable_samplers[array_index]; in anv_nir_lower_ycbcr_textures_instr()
Danv_nir_apply_pipeline_layout.c307 nir_ssa_def *array_index, nir_address_format addr_format, in build_res_index() argument
346 array_index); in build_res_index()
360 return nir_vec2(b, array_index, nir_imm_int(b, packed)); in build_res_index()
373 nir_ssa_def *array_index; member
388 defs.array_index = nir_umin(b, nir_channel(b, index, 2), in unpack_res_index()
453 nir_iadd(b, desc_offset, nir_imul(b, res.array_index, res.desc_stride)); in build_desc_addr()
502 nir_ssa_def *array_index = nir_channel(b, res_index, 0); in build_buffer_addr_for_res_index() local
508 array_index = nir_umin(b, array_index, array_max); in build_buffer_addr_for_res_index()
510 return nir_vec2(b, nir_iadd(b, surface_index, array_index), in build_buffer_addr_for_res_index()
527 nir_iadd(b, res.dyn_offset_base, res.array_index); in build_buffer_addr_for_res_index()
[all …]
/third_party/flutter/skia/third_party/externals/sfntly/cpp/src/sfntly/table/bitmap/
Dindex_sub_table.cc58 int32_t array_index) { in CreateIndexSubTable() argument
61 data, offset_to_index_sub_table_array, array_index)); in CreateIndexSubTable()
147 int32_t offset_to_index_sub_table_array, int32_t array_index) { in CreateBuilder() argument
150 array_index * EblcTable::Offset::kIndexSubTableEntryLength; in CreateBuilder()
/third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/table/bitmap/
Dindex_sub_table.cc58 int32_t array_index) { in CreateIndexSubTable() argument
61 data, offset_to_index_sub_table_array, array_index)); in CreateIndexSubTable()
147 int32_t offset_to_index_sub_table_array, int32_t array_index) { in CreateBuilder() argument
150 array_index * EblcTable::Offset::kIndexSubTableEntryLength; in CreateBuilder()

123456