Home
last modified time | relevance | path

Searched refs:array_elements (Results 1 – 24 of 24) 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_uniform_initializers.cpp116 const unsigned elements = MAX2(storage->array_elements, 1); in set_opaque_binding()
204 element_type, val->array_elements[i], in set_uniform_initializer()
217 val->array_elements[0]->type->base_type; in set_uniform_initializer()
218 const unsigned int elements = val->array_elements[0]->type->components(); in set_uniform_initializer()
222 assert(val->type->length >= storage->array_elements); in set_uniform_initializer()
223 for (unsigned int i = 0; i < storage->array_elements; i++) { in set_uniform_initializer()
225 val->array_elements[i], in set_uniform_initializer()
Dlink_uniforms.cpp530 unsigned inner_array_size = MAX2(1, uniform->array_elements); in handle_samplers()
580 this->next_sampler += MAX2(1, uniform->array_elements); in handle_samplers()
613 this->next_image += MAX2(1, uniform->array_elements); in handle_images()
632 this->next_subroutine += MAX2(1, uniform->array_elements); in handle_subroutines()
695 this->uniforms[id].array_elements = type->length; in visit_field()
698 this->uniforms[id].array_elements = 0; in visit_field()
733 const unsigned entries = MAX2(1, this->uniforms[id].array_elements); in visit_field()
1019 const unsigned entries = MAX2(1, uniform->array_elements); in find_empty_block()
1062 MAX2(1, prog->data->UniformStorage[i].array_elements); in link_setup_uniform_remap_tables()
1093 MAX2(1, prog->data->UniformStorage[i].array_elements); in link_setup_uniform_remap_tables()
[all …]
Dir.cpp548 this->array_elements = NULL; in ir_constant()
555 this->array_elements = NULL; in ir_constant()
632 this->array_elements = NULL; in ir_constant()
648 this->array_elements = NULL; in ir_constant()
655 this->array_elements = ralloc_array(this, ir_constant *, type->length); in ir_constant()
660 this->array_elements[i++] = value; in ir_constant()
809 c->array_elements = ralloc_array(c, ir_constant *, type->length); in zero()
812 c->array_elements[i] = ir_constant::zero(c, type->fields.array); in zero()
935 return array_elements[i]; in get_array_element()
1010 this->array_elements[i] = src->array_elements[i]->clone(this, NULL); in copy_offset()
[all …]
Dir_uniform.h106 unsigned array_elements; member
Dlink_uniform_block_active_visitor.h32 unsigned *array_elements; member
Dir_clone.cpp361 c->array_elements = ralloc_array(c, ir_constant *, this->type->length); in clone()
363 c->array_elements[i] = this->array_elements[i]->clone(mem_ctx, NULL); in clone()
Dlink_uniform_blocks.cpp237 ub_array->array_elements[j]); in process_block_array()
Dir.h2224 ir_constant **array_elements; variable
Dglsl_to_nir.cpp284 ret->elements[i] = constant_copy(ir->array_elements[i], mem_ctx); in constant_copy()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_nir_uniforms.cpp102 BRW_IMAGE_PARAM_SIZE * MAX2(storage->array_elements, 1); in brw_nir_setup_glsl_uniform()
105 unsigned vector_count = (MAX2(storage->array_elements, 1) * in brw_nir_setup_glsl_uniform()
Dbrw_shader.cpp1246 for (unsigned i = 0; i < MAX2(storage->array_elements, 1); i++) { in brw_setup_image_uniform_values()
/external/mesa3d/src/mesa/main/
Duniform_query.cpp246 if (uni->array_elements == 0) { in validate_uniform_parameters()
265 if (*array_index >= uni->array_elements) { in validate_uniform_parameters()
826 if (uni->array_elements != 0) { in _mesa_uniform()
827 count = MIN2(count, (int) (uni->array_elements - offset)); in _mesa_uniform()
1003 if (uni->array_elements != 0) { in _mesa_uniform_matrix()
1004 count = MIN2(count, (int) (uni->array_elements - offset)); in _mesa_uniform_matrix()
Dshader_query.cpp419 return RESOURCE_UNI(res)->array_elements; in _mesa_program_resource_array_size()
423 RESOURCE_UNI(res)->array_elements == 0) in _mesa_program_resource_array_size()
426 return RESOURCE_UNI(res)->array_elements; in _mesa_program_resource_array_size()
822 && array_index >= RESOURCE_UNI(res)->array_elements) { in program_resource_location()
1128 *val = RESOURCE_UNI(res)->array_elements; in _mesa_program_resource_prop()
1130 *val = MAX2(RESOURCE_UNI(res)->array_elements, 1); in _mesa_program_resource_prop()
Dshaderapi.c681 ((shProg->data->UniformStorage[i].array_elements != 0) ? 3 : 0); in get_programiv()
2496 values[0] = uni->array_elements ? uni->array_elements : 1; in _mesa_GetActiveSubroutineUniformiv()
2636 int uni_count = uni->array_elements ? uni->array_elements : 1; in _mesa_UniformSubroutinesuiv()
2857 uni_count = uni->array_elements ? uni->array_elements : 1; in _mesa_shader_write_subroutine_index()
/external/mesa3d/src/compiler/glsl/tests/
Duniform_initializer_utils.cpp206 const glsl_type *const element_type = val->array_elements[0]->type; in verify_data()
210 val->array_elements[i], 0, boolean_true); in verify_data()
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/trappy/trappy/
Dbase.py141 (array_name, array_elements) = match.groups()
143 array_len = len(array_elements.split(' '))
/external/mesa3d/src/mesa/program/
Dir_to_mesa.cpp1605 unsigned *offset, unsigned *array_elements, in calc_sampler_offsets() argument
1630 *offset += array_index->value.u[0] * *array_elements; in calc_sampler_offsets()
1633 *array_elements *= deref_arr->array->type->length; in calc_sampler_offsets()
1636 offset, array_elements, location); in calc_sampler_offsets()
1647 offset, array_elements, location); in calc_sampler_offsets()
1665 unsigned array_elements = 1; in get_sampler_uniform_value() local
1668 calc_sampler_offsets(shader_program, sampler, &offset, &array_elements, in get_sampler_uniform_value()
1890 ir->array_elements[i]->accept(this); in visit()
2577 MAX2(1, storage->array_elements)); in _mesa_associate_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/mesa3d/src/mesa/state_tracker/
Dst_glsl_to_tgsi.cpp540 unsigned *array_elements,
3110 ir->array_elements[i]->accept(this); in visit()
3836 unsigned *array_elements, in calc_deref_offsets() argument
3847 …calc_deref_offsets(deref_record->record->as_dereference(), array_elements, index, indirect, locati… in calc_deref_offsets()
3867 if (*array_elements != 1) in calc_deref_offsets()
3868 … emit_asm(NULL, TGSI_OPCODE_MUL, temp_dst, this->result, st_src_reg_for_int(*array_elements)); in calc_deref_offsets()
3880 *index += array_index->value.u[0] * *array_elements; in calc_deref_offsets()
3882 *array_elements *= deref_arr->array->type->length; in calc_deref_offsets()
3884 … calc_deref_offsets(deref_arr->array->as_dereference(), array_elements, index, indirect, location); in calc_deref_offsets()
/external/conscrypt/common/src/jni/main/cpp/
DNativeCrypto.cpp2513 jbyte* array_elements = env->GetByteArrayElements(inJavaBytes, nullptr); in evpUpdate() local
2514 if (array_elements == nullptr) { in evpUpdate()
2518 const unsigned char* buf = reinterpret_cast<const unsigned char*>(array_elements); in evpUpdate()
2520 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()