Home
last modified time | relevance | path

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

123456

/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()
135 deref->array_index); in visit_enter()
193 deref->array_index); in handle_rvalue()
Dlower_buffer_access.cpp352 ir_rvalue *array_index = deref_array->array_index; in setup_buffer_access() local
353 if (array_index->type->base_type == GLSL_TYPE_INT) in setup_buffer_access()
354 array_index = i2u(array_index); in setup_buffer_access()
357 array_index->constant_expression_value(mem_ctx, NULL); in setup_buffer_access()
362 mul(array_index, in setup_buffer_access()
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
478 block->Binding = var->data.binding + array_index; in fill_block()
508 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()
Dlower_variable_index_to_cond_assign.cpp163 ir->array_index->as_constant() == NULL) { in visit_enter()
422 if (deref == NULL || deref->array_index->as_constant() || in needs_lowering()
460 ir_variable *index = body.make_temp(orig_deref->array_index->type, in convert_dereference_array()
463 body.emit(assign(index, orig_deref->array_index)); in convert_dereference_array()
465 orig_deref->array_index = deref(index).val; in convert_dereference_array()
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()
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()
/third_party/json/include/nlohmann/detail/iterators/
Diteration_proxy.hpp36 std::size_t array_index = 0; member in nlohmann::detail::iteration_proxy_value
57 ++array_index; in operator ++()
84 if (array_index != array_index_last) in key()
86 int_to_string( array_index_str, array_index ); in key()
87 array_index_last = array_index; in key()
/third_party/mesa3d/src/mesa/main/
Dshader_query.cpp44 unsigned array_index);
236 unsigned array_index = 0; in _mesa_GetAttribLocation() local
239 &array_index); in _mesa_GetAttribLocation()
244 return program_resource_location(res, array_index); in _mesa_GetAttribLocation()
446 unsigned array_index = 0; in _mesa_GetFragDataLocation() local
449 &array_index); in _mesa_GetFragDataLocation()
454 return program_resource_location(res, array_index); in _mesa_GetFragDataLocation()
538 valid_array_index(const GLchar *name, unsigned *array_index) in valid_array_index() argument
547 if (array_index) in valid_array_index()
548 *array_index = idx; in valid_array_index()
[all …]
/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
43 array_index * v3dv_X(device, descriptor_bo_size)(binding_layout->type); in descriptor_bo_map()
85 uint32_t array_index = map->array_index[index]; in v3dv_descriptor_map_get_descriptor() local
86 assert(array_index < binding_layout->array_size); in v3dv_descriptor_map_get_descriptor()
91 binding_layout->dynamic_offset_index + array_index; in v3dv_descriptor_map_get_descriptor()
96 return &set->descriptors[binding_layout->descriptor_index + array_index]; in v3dv_descriptor_map_get_descriptor()
131 uint32_t array_index = map->array_index[index]; in v3dv_descriptor_map_get_descriptor_bo() local
132 assert(array_index < binding_layout->array_size); in v3dv_descriptor_map_get_descriptor_bo()
137 array_index * v3dv_X(device, descriptor_bo_size)(binding_layout->type), in v3dv_descriptor_map_get_descriptor_bo()
170 uint32_t array_index = map->array_index[index]; in v3dv_descriptor_map_get_sampler() local
[all …]
/third_party/jerryscript/tests/jerry/es2015/
DtypedArray-find.js66 var array_index = 0;
69 assert (array_index++ === index);
85 array_index = 0;
DtypedArray-find-index.js66 var array_index = 0;
69 assert (array_index++ === index);
85 array_index = 0;
Darray-prototype-find.js65 var array_index = 0; variable
68 assert (array_index++ === index);
84 array_index = 0;
Darray-prototype-find-index.js65 var array_index = 0; variable
68 assert (array_index++ === index);
84 array_index = 0;
/third_party/json/include/nlohmann/detail/
Djson_pointer.hpp333 static typename BasicJsonType::size_type array_index(const std::string& s) in array_index() function in nlohmann::json_pointer
433 result = &result->operator[](array_index(reference_token)); in get_and_create()
510 ptr = &ptr->operator[](array_index(reference_token)); in get_unchecked()
553 ptr = &ptr->at(array_index(reference_token)); in get_checked()
602 ptr = &ptr->operator[](array_index(reference_token)); in get_unchecked()
644 ptr = &ptr->at(array_index(reference_token)); in get_checked()
707 const auto idx = array_index(reference_token); in contains()
/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 *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/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.c182 nir_ssa_def **array_index, in get_io_offset() argument
195 if (array_index != NULL) { in get_io_offset()
197 *array_index = nir_ssa_for_src(b, (*p)->arr.index, 1); in get_io_offset()
245 nir_ssa_def *array_index, nir_variable *var, nir_ssa_def *offset, in emit_load() argument
262 assert(array_index != NULL); in emit_load()
265 assert(array_index == NULL); in emit_load()
281 op = array_index ? nir_intrinsic_load_per_vertex_input : in emit_load()
286 op = !array_index ? nir_intrinsic_load_output : in emit_load()
325 if (array_index) { in emit_load()
326 load->src[0] = nir_src_for_ssa(array_index); in emit_load()
[all …]
/third_party/glib/gio/
Dgwin32registrykey.c1882 gsize array_index = 0; in g_win32_registry_get_os_dirs_w() local
1909 new_mui_os_dirs[array_index++] = system32; in g_win32_registry_get_os_dirs_w()
1912 new_mui_os_dirs[array_index++] = syswow64; in g_win32_registry_get_os_dirs_w()
1914 new_mui_os_dirs[array_index++] = NULL; in g_win32_registry_get_os_dirs_w()
1940 gsize array_index; in g_win32_registry_get_os_dirs() local
1944 for (array_index = 0; mui_os_dirs_utf16[array_index] != NULL; array_index++) in g_win32_registry_get_os_dirs()
1947 new_mui_os_dirs = g_new0 (gchar *, array_index + 1); in g_win32_registry_get_os_dirs()
1949 for (array_index = 0, new_array_index = 0; in g_win32_registry_get_os_dirs()
1950 mui_os_dirs_utf16[array_index] != NULL; in g_win32_registry_get_os_dirs()
1951 array_index++) in g_win32_registry_get_os_dirs()
[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.c310 nir_ssa_def *array_index, nir_address_format addr_format, in build_res_index() argument
349 array_index); in build_res_index()
363 return nir_vec2(b, array_index, nir_imm_int(b, packed)); in build_res_index()
376 nir_ssa_def *array_index; member
389 defs.array_index = nir_umin(b, nir_channel(b, index, 2), in unpack_res_index()
460 nir_iadd(b, desc_offset, nir_imul_imm(b, res.array_index, stride)); in build_desc_addr()
509 nir_ssa_def *array_index = nir_channel(b, res_index, 0); in build_buffer_addr_for_res_index() local
515 array_index = nir_umin(b, array_index, array_max); in build_buffer_addr_for_res_index()
517 return nir_vec2(b, nir_iadd(b, surface_index, array_index), in build_buffer_addr_for_res_index()
534 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