Home
last modified time | relevance | path

Searched refs:array_elements (Results 1 – 16 of 16) sorted by relevance

/third_party/mesa3d/src/compiler/glsl/
Dlink_uniform_block_active_visitor.cpp120 if (ub_array->array_elements[i] == idx) in process_arrays()
127 ub_array->array_elements = reralloc(mem_ctx, in process_arrays()
128 ub_array->array_elements, in process_arrays()
132 ub_array->array_elements[ub_array->num_array_elements] = idx; in process_arrays()
141 ub_array->array_elements = reralloc(mem_ctx, in process_arrays()
142 ub_array->array_elements, in process_arrays()
147 ub_array->array_elements[i] = i; in process_arrays()
200 (*ub_array)->array_elements = reralloc(this->mem_ctx, in visit()
201 (*ub_array)->array_elements, in visit()
207 (*ub_array)->array_elements[i] = i; in visit()
Dgl_nir_lower_buffers.c36 unsigned array_elements = 1; in get_block_array_index() local
57 const_array_offset += arr_index * array_elements; in get_block_array_index()
61 nir_ssa_def *arr_offset = nir_amul_imm(b, arr_index, array_elements); in get_block_array_index()
71 array_elements *= arr_size; in get_block_array_index()
Dgl_nir_link_uniforms.c225 const unsigned entries = MAX2(1, uniform->array_elements); in nir_setup_uniform_remap_tables()
262 const unsigned entries = MAX2(1, uniform->array_elements); in nir_setup_uniform_remap_tables()
325 MAX2(1, prog->data->UniformStorage[i].array_elements); in nir_setup_uniform_remap_tables()
362 MAX2(1, prog->data->UniformStorage[i].array_elements); in nir_setup_uniform_remap_tables()
402 MAX2(1, prog->data->UniformStorage[i].array_elements); in nir_setup_uniform_remap_tables()
756 state->current_type->next_index += MAX2(1, uniform->array_elements); in get_next_index()
843 state->next_bindless_image_index += MAX2(1, uniform->array_elements); in update_uniforms_shader_info()
860 state->next_image_index += MAX2(1, uniform->array_elements); in update_uniforms_shader_info()
890 state->next_subroutine += MAX2(1, uniform->array_elements); in update_uniforms_shader_info()
1356 uniform->array_elements = glsl_get_length(type); in nir_link_uniform()
[all …]
Dgl_nir_link_uniform_initializers.c59 const unsigned elements = MAX2(storage->array_elements, 1); in set_opaque_binding()
227 assert(glsl_get_length(type) >= storage->array_elements); in set_uniform_initializer()
228 for (unsigned int i = 0; i < storage->array_elements; i++) { in set_uniform_initializer()
Dir_uniform.h114 unsigned array_elements; member
Dlink_uniform_block_active_visitor.h31 unsigned *array_elements; member
Dlinker_util.cpp178 const unsigned entries = MAX2(1, uniform->array_elements); in link_util_find_empty_block()
Dserialize.cpp440 blob_write_uint32(metadata, prog->data->UniformStorage[i].array_elements); in write_uniforms()
484 MAX2(prog->data->UniformStorage[i].array_elements, 1); in write_uniforms()
519 uniforms[i].array_elements = blob_read_uint32(metadata); in read_uniforms()
554 MAX2(prog->data->UniformStorage[i].array_elements, 1); in read_uniforms()
Dlink_uniform_blocks.cpp249 unsigned int element_idx = ub_array->array_elements[j]; in process_block_array()
/third_party/mesa3d/src/compiler/nir/
Dnir_lower_samplers.c35 unsigned array_elements = 1; in lower_tex_src_to_offset() local
67 base_index += index_in_array * array_elements; in lower_tex_src_to_offset()
79 nir_imul(b, nir_imm_int(b, array_elements), in lower_tex_src_to_offset()
83 array_elements *= glsl_get_length(parent->type); in lower_tex_src_to_offset()
89 index = nir_umin(b, index, nir_imm_int(b, array_elements - 1)); in lower_tex_src_to_offset()
/third_party/mesa3d/src/mesa/main/
Duniform_query.cpp271 if (uni->array_elements == 0) { in validate_uniform_parameters()
290 if (*array_index >= uni->array_elements) { in validate_uniform_parameters()
1031 unsigned array_elements = MAX2(1, storage->array_elements); in associate_uniform_storage() local
1033 for (unsigned j = 0; j < array_elements; ++j) { in associate_uniform_storage()
1052 unsigned array_elements = MAX2(1, storage->array_elements); in associate_uniform_storage() local
1065 array_elements * dmul); in associate_uniform_storage()
1069 array_elements); in associate_uniform_storage()
1461 assert(uni->array_elements > 0 || location == (int)uni->remap_location); in _mesa_uniform()
1483 if (uni->array_elements != 0) { in _mesa_uniform()
1484 count = MIN2(count, (int) (uni->array_elements - offset)); in _mesa_uniform()
[all …]
Dshader_query.cpp589 return RESOURCE_UNI(res)->array_elements; in _mesa_program_resource_array_size()
593 RESOURCE_UNI(res)->array_elements == 0) in _mesa_program_resource_array_size()
596 return RESOURCE_UNI(res)->array_elements; in _mesa_program_resource_array_size()
1170 && array_index >= RESOURCE_UNI(res)->array_elements) { in program_resource_location()
1499 *val = RESOURCE_UNI(res)->array_elements; in _mesa_program_resource_prop()
1501 *val = MAX2(RESOURCE_UNI(res)->array_elements, 1); in _mesa_program_resource_prop()
Dshaderapi.c2941 values[0] = uni->array_elements ? uni->array_elements : 1; in _mesa_GetActiveSubroutineUniformiv()
3063 int uni_count = uni->array_elements ? uni->array_elements : 1; in _mesa_UniformSubroutinesuiv()
3788 uni_count = uni->array_elements ? uni->array_elements : 1; in _mesa_shader_write_subroutine_index()
/third_party/mesa3d/src/broadcom/vulkan/
Dv3dv_pipeline.c675 unsigned array_elements = 1; in lower_tex_src_to_offset() local
690 base_index += nir_src_as_uint(deref->arr.index) * array_elements; in lower_tex_src_to_offset()
699 nir_imul(b, nir_imm_int(b, array_elements), in lower_tex_src_to_offset()
703 array_elements *= glsl_get_length(parent->type); in lower_tex_src_to_offset()
709 index = nir_umin(b, index, nir_imm_int(b, array_elements - 1)); in lower_tex_src_to_offset()
815 unsigned array_elements = 1; in lower_image_deref() local
827 base_index += nir_src_as_uint(deref->arr.index) * array_elements; in lower_image_deref()
836 nir_imul(b, nir_imm_int(b, array_elements), in lower_image_deref()
840 array_elements *= glsl_get_length(parent->type); in lower_image_deref()
846 index = nir_umin(b, index, nir_imm_int(b, array_elements - 1)); in lower_image_deref()
/third_party/node/deps/v8/src/objects/
Dlookup.cc1435 Isolate* isolate, FixedArray array_elements, ElementsKind elements_kind, in TryGetOwnCowElement() argument
1439 CHECK_EQ(array_elements.map(), ReadOnlyRoots(isolate).fixed_cow_array_map()); in TryGetOwnCowElement()
1457 if (index >= static_cast<size_t>(array_elements.length())) return {}; in TryGetOwnCowElement()
1459 Object result = array_elements.get(isolate, static_cast<int>(index)); in TryGetOwnCowElement()
Dlookup.h340 Isolate* isolate, FixedArray array_elements, ElementsKind elements_kind,