Home
last modified time | relevance | path

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

/external/mesa3d/src/compiler/nir/
Dnir_lower_samplers.c40 unsigned *array_elements, nir_ssa_def **indirect, in calc_sampler_offsets() argument
52 calc_sampler_offsets(tail->child, instr, array_elements, in calc_sampler_offsets()
54 instr->texture_index += deref_array->base_offset * *array_elements; in calc_sampler_offsets()
58 nir_imul(b, nir_imm_int(b, *array_elements), in calc_sampler_offsets()
71 *array_elements *= glsl_get_length(tail->type); in calc_sampler_offsets()
78 calc_sampler_offsets(tail->child, instr, array_elements, in calc_sampler_offsets()
101 unsigned array_elements = 1; in lower_sampler() local
105 calc_sampler_offsets(&instr->texture->deref, instr, &array_elements, in lower_sampler()
109 assert(array_elements >= 1); in lower_sampler()
110 indirect = nir_umin(b, indirect, nir_imm_int(b, array_elements - 1)); in lower_sampler()
[all …]
/external/mesa3d/src/compiler/glsl/
Dlink_uniform_block_active_visitor.cpp117 if (ub_array->array_elements[i] == idx) in process_arrays()
124 ub_array->array_elements = reralloc(mem_ctx, in process_arrays()
125 ub_array->array_elements, in process_arrays()
129 ub_array->array_elements[ub_array->num_array_elements] = idx; in process_arrays()
138 ub_array->array_elements = reralloc(mem_ctx, in process_arrays()
139 ub_array->array_elements, in process_arrays()
144 ub_array->array_elements[i] = i; in process_arrays()
197 (*ub_array)->array_elements = reralloc(this->mem_ctx, in visit()
198 (*ub_array)->array_elements, in visit()
203 (*ub_array)->array_elements[i] = i; in visit()
Dlink_uniforms.cpp588 unsigned inner_array_size = MAX2(1, uniform->array_elements); in set_opaque_indices()
637 next_index += MAX2(1, uniform->array_elements); in set_opaque_indices()
741 this->next_subroutine += MAX2(1, uniform->array_elements); in handle_subroutines()
804 this->uniforms[id].array_elements = type->length; in visit_field()
807 this->uniforms[id].array_elements = 0; in visit_field()
844 const unsigned entries = MAX2(1, this->uniforms[id].array_elements); in visit_field()
1164 const unsigned entries = MAX2(1, uniform->array_elements); in find_empty_block()
1205 MAX2(1, prog->data->UniformStorage[i].array_elements); in link_setup_uniform_remap_tables()
1236 MAX2(1, prog->data->UniformStorage[i].array_elements); in link_setup_uniform_remap_tables()
1290 MAX2(1, prog->data->UniformStorage[i].array_elements); in link_setup_uniform_remap_tables()
[all …]
Dlink_uniform_initializers.cpp122 const unsigned elements = MAX2(storage->array_elements, 1); in set_opaque_binding()
247 assert(val->type->length >= storage->array_elements); in set_uniform_initializer()
248 for (unsigned int i = 0; i < storage->array_elements; i++) { in set_uniform_initializer()
Dir_uniform.h105 unsigned array_elements; member
Dlink_uniform_block_active_visitor.h31 unsigned *array_elements; member
Dserialize.cpp410 blob_write_uint32(metadata, prog->data->UniformStorage[i].array_elements); in write_uniforms()
450 MAX2(prog->data->UniformStorage[i].array_elements, 1); in write_uniforms()
485 uniforms[i].array_elements = blob_read_uint32(metadata); in read_uniforms()
519 MAX2(prog->data->UniformStorage[i].array_elements, 1); in read_uniforms()
Dlink_uniform_blocks.cpp248 ub_array->array_elements[j]); in process_block_array()
/external/mesa3d/src/mesa/main/
Duniform_query.cpp247 if (uni->array_elements == 0) { in validate_uniform_parameters()
266 if (*array_index >= uni->array_elements) { in validate_uniform_parameters()
1057 assert(uni->array_elements > 0 || location == (int)uni->remap_location); in _mesa_uniform()
1079 if (uni->array_elements != 0) { in _mesa_uniform()
1080 count = MIN2(count, (int) (uni->array_elements - offset)); in _mesa_uniform()
1300 if (uni->array_elements != 0) { in _mesa_uniform_matrix()
1301 count = MIN2(count, (int) (uni->array_elements - offset)); in _mesa_uniform_matrix()
1408 assert(uni->array_elements > 0 || location == (int)uni->remap_location); in _mesa_uniform_handle()
1454 if (uni->array_elements != 0) { in _mesa_uniform_handle()
1455 count = MIN2(count, (int) (uni->array_elements - offset)); in _mesa_uniform_handle()
Dshader_query.cpp479 return RESOURCE_UNI(res)->array_elements; in _mesa_program_resource_array_size()
483 RESOURCE_UNI(res)->array_elements == 0) in _mesa_program_resource_array_size()
486 return RESOURCE_UNI(res)->array_elements; in _mesa_program_resource_array_size()
885 && array_index >= RESOURCE_UNI(res)->array_elements) { in program_resource_location()
1191 *val = RESOURCE_UNI(res)->array_elements; in _mesa_program_resource_prop()
1193 *val = MAX2(RESOURCE_UNI(res)->array_elements, 1); in _mesa_program_resource_prop()
Dshaderapi.c732 ((shProg->data->UniformStorage[i].array_elements != 0) ? 3 : 0); in get_programiv()
2739 values[0] = uni->array_elements ? uni->array_elements : 1; in _mesa_GetActiveSubroutineUniformiv()
2861 int uni_count = uni->array_elements ? uni->array_elements : 1; in _mesa_UniformSubroutinesuiv()
3061 uni_count = uni->array_elements ? uni->array_elements : 1; in _mesa_shader_write_subroutine_index()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_nir_uniforms.cpp89 for (unsigned i = 0; i < MAX2(storage->array_elements, 1); i++) { in brw_setup_image_uniform_values()
154 BRW_IMAGE_PARAM_SIZE * MAX2(storage->array_elements, 1); in brw_nir_setup_glsl_uniform()
157 unsigned vector_count = (MAX2(storage->array_elements, 1) * in brw_nir_setup_glsl_uniform()
/external/mesa3d/src/mesa/program/
Dir_to_mesa.cpp1643 unsigned *offset, unsigned *array_elements, in calc_sampler_offsets() argument
1670 *offset += array_index->value.u[0] * *array_elements; in calc_sampler_offsets()
1673 *array_elements *= deref_arr->array->type->length; in calc_sampler_offsets()
1676 offset, array_elements, location); in calc_sampler_offsets()
1686 offset, array_elements, location); in calc_sampler_offsets()
1704 unsigned array_elements = 1; in get_sampler_uniform_value() local
1707 calc_sampler_offsets(shader_program, sampler, &offset, &array_elements, in get_sampler_uniform_value()
2592 unsigned array_elements = MAX2(1, storage->array_elements); in _mesa_associate_uniform_storage() local
2594 for (unsigned j = 0; j < array_elements; ++j) { in _mesa_associate_uniform_storage()
2614 unsigned array_elements = MAX2(1, storage->array_elements); in _mesa_associate_uniform_storage() local
[all …]
/external/mesa3d/src/compiler/glsl/tests/
Dset_uniform_initializer_tests.cpp120 prog->data->UniformStorage[index_to_set].array_elements = array_size; in establish_uniform_storage()
143 prog->data->UniformStorage[i].array_elements = 0; in establish_uniform_storage()
/external/smali/smali/src/main/antlr/
DsmaliTreeWalker.g322 array_elements returns[List<Number> elements]
1169 ^(I_STATEMENT_ARRAY_DATA ^(I_ARRAY_ELEMENT_SIZE short_integral_literal) array_elements)
1172 List<Number> elements = $array_elements.elements;
1174 …$method::methodBuilder.addInstruction(new BuilderArrayPayload(elementWidth, $array_elements.elemen…
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dir_emitter.h333 const std::vector<llvm::Constant*>& array_elements, const Shape& shape,
/external/mesa3d/src/mesa/state_tracker/
Dst_glsl_to_tgsi.cpp314 unsigned *array_elements,
3942 unsigned *array_elements, in calc_deref_offsets() argument
3953 …calc_deref_offsets(deref_record->record->as_dereference(), array_elements, index, indirect, locati… in calc_deref_offsets()
3976 if (*array_elements != 1) in calc_deref_offsets()
3977 … emit_asm(NULL, TGSI_OPCODE_MUL, temp_dst, this->result, st_src_reg_for_int(*array_elements)); in calc_deref_offsets()
3989 *index += array_index->value.u[0] * *array_elements; in calc_deref_offsets()
3991 *array_elements *= deref_arr->array->type->length; in calc_deref_offsets()
3993 … calc_deref_offsets(deref_arr->array->as_dereference(), array_elements, index, indirect, location); in calc_deref_offsets()
/external/v8/src/compiler/
Djs-native-context-specialization.cc1437 Handle<FixedArray> array_elements( in ReduceKeyedAccess() local
1441 jsgraph()->HeapConstant(array_elements)); in ReduceKeyedAccess()
/external/conscrypt/common/src/jni/main/cpp/conscrypt/
Dnative_crypto.cc2758 jbyte* array_elements = env->GetByteArrayElements(inJavaBytes, nullptr); in evpUpdate() local
2759 if (array_elements == nullptr) { in evpUpdate()
2763 const unsigned char* buf = reinterpret_cast<const unsigned char*>(array_elements); in evpUpdate()
2765 env->ReleaseByteArrayElements(inJavaBytes, array_elements, JNI_ABORT); in evpUpdate()
/external/smali/smali/src/main/java/org/jf/smali/
DsmaliTreeWalker.java1877 public final List<Number> array_elements() throws RecognitionException { in array_elements() method in smaliTreeWalker
6097 array_elements185=array_elements(); in insn_array_data_directive()