Searched refs:array_index (Results 1 - 25 of 94) sorted by relevance

1234

/xsrc/external/mit/MesaLib/dist/src/compiler/glsl/
H A Dlower_vector_derefs.cpp80 deref->array_index->constant_expression_value(mem_ctx);
101 factory.make_temp(deref->array_index->type, "index_tmp");
102 factory.emit(assign(arr_index, deref->array_index));
106 ir_constant::zero(factory.mem_ctx, deref->array_index->type);
135 deref->array_index);
193 deref->array_index);
H A Dlower_buffer_access.cpp352 ir_rvalue *array_index = deref_array->array_index; local in function:lower_buffer_access::lower_buffer_access::setup_buffer_access
353 if (array_index->type->base_type == GLSL_TYPE_INT)
354 array_index = i2u(array_index);
357 array_index->constant_expression_value(mem_ctx, NULL);
362 mul(array_index,
H A Dlower_distance.cpp220 * \param array_index Selects one of the vec4's in gl_ClipDistanceMESA
222 * array_index.
226 ir_rvalue *&array_index,
247 array_index = new(ctx) ir_constant(const_val / 4);
262 array_index = new(ctx) ir_expression(
358 ir_dereference_array(*new_var, array_ref->array_index);
381 ir_rvalue *array_index; local in function:lower_distance_visitor::handle_rvalue
383 this->create_indices(array_deref->array_index, array_index, swizzle_index);
387 new(mem_ctx) ir_dereference_array(lowered_vec8, array_index);
225 create_indices(ir_rvalue * old_index,ir_rvalue * & array_index,ir_rvalue * & swizzle_index) argument
[all...]
H A Dgl_nir_link_uniform_blocks.c465 unsigned array_index,
478 block->Binding = var->data.binding + array_index;
508 block->linearized_array_index = array_index;
574 for (unsigned array_index = 0; array_index < buffer_count; array_index++) { local in function:link_linked_shader_uniform_blocks
576 array_index, prog, shader->Stage);
461 fill_block(struct gl_uniform_block * block,nir_variable * var,struct gl_uniform_buffer_variable * variables,unsigned * variable_index,unsigned array_index,struct gl_shader_program * prog,const gl_shader_stage stage) argument
H A Dir_equals.cpp98 if (!array_index->equals(other->array_index, ignore))
H A Dir_set_program_inouts.cpp354 if (try_mark_partial_variable(deref_var->var, ir->array_index))
360 inner_array->array_index->accept(this);
377 ir->array_index->accept(this);
383 if (try_mark_partial_variable(deref_var->var, ir->array_index))
H A Dopt_array_splitting.cpp239 if (!ir->array_index->as_constant()) {
253 if (ir->array_index->as_dereference_array())
254 visit_enter(ir->array_index->as_dereference_array());
360 ir_constant *constant = deref_array->array_index->as_constant();
H A Dopt_function_inlining.cpp115 if (deref->array_index->ir_type != ir_type_constant) {
120 index = new(ctx) ir_variable(deref->array_index->type, "saved_idx", ir_var_temporary);
124 deref->array_index);
127 deref->array_index = new(ctx) ir_dereference_variable(index);
H A Dlower_variable_index_to_cond_assign.cpp163 ir->array_index->as_constant() == NULL) {
422 if (deref == NULL || deref->array_index->as_constant() ||
460 ir_variable *index = body.make_temp(orig_deref->array_index->type,
463 body.emit(assign(index, orig_deref->array_index));
465 orig_deref->array_index = deref(index).val;
/xsrc/external/mit/MesaLib.old/dist/src/compiler/glsl/
H A Dlower_vector_derefs.cpp80 deref->array_index->constant_expression_value(mem_ctx);
101 factory.make_temp(deref->array_index->type, "index_tmp");
102 factory.emit(assign(arr_index, deref->array_index));
106 ir_constant::zero(factory.mem_ctx, deref->array_index->type);
135 deref->array_index);
177 deref->array_index);
H A Dlower_buffer_access.cpp352 ir_rvalue *array_index = deref_array->array_index; local in function:lower_buffer_access::lower_buffer_access::setup_buffer_access
353 if (array_index->type->base_type == GLSL_TYPE_INT)
354 array_index = i2u(array_index);
357 array_index->constant_expression_value(mem_ctx, NULL);
362 mul(array_index,
H A Dlower_distance.cpp220 * \param array_index Selects one of the vec4's in gl_ClipDistanceMESA
222 * array_index.
226 ir_rvalue *&array_index,
247 array_index = new(ctx) ir_constant(const_val / 4);
262 array_index = new(ctx) ir_expression(
358 ir_dereference_array(*new_var, array_ref->array_index);
381 ir_rvalue *array_index; local in function:lower_distance_visitor::handle_rvalue
383 this->create_indices(array_deref->array_index, array_index, swizzle_index);
387 new(mem_ctx) ir_dereference_array(lowered_vec8, array_index);
225 create_indices(ir_rvalue * old_index,ir_rvalue * & array_index,ir_rvalue * & swizzle_index) argument
[all...]
H A Dir_equals.cpp98 if (!array_index->equals(other->array_index, ignore))
H A Dir_set_program_inouts.cpp354 if (try_mark_partial_variable(deref_var->var, ir->array_index))
360 inner_array->array_index->accept(this);
377 ir->array_index->accept(this);
383 if (try_mark_partial_variable(deref_var->var, ir->array_index))
H A Dopt_array_splitting.cpp239 if (!ir->array_index->as_constant()) {
253 if (ir->array_index->as_dereference_array())
254 visit_enter(ir->array_index->as_dereference_array());
360 ir_constant *constant = deref_array->array_index->as_constant();
H A Dopt_function_inlining.cpp115 if (deref->array_index->ir_type != ir_type_constant) {
120 index = new(ctx) ir_variable(deref->array_index->type, "saved_idx", ir_var_temporary);
124 deref->array_index);
127 deref->array_index = new(ctx) ir_dereference_variable(index);
H A Dlower_variable_index_to_cond_assign.cpp163 ir->array_index->as_constant() == NULL) {
422 if (deref == NULL || deref->array_index->as_constant() ||
460 ir_variable *index = body.make_temp(orig_deref->array_index->type,
463 body.emit(assign(index, orig_deref->array_index));
465 orig_deref->array_index = deref(index).val;
/xsrc/external/mit/MesaLib/dist/src/mesa/main/
H A Dshader_query.cpp44 unsigned array_index);
236 unsigned array_index = 0; local in function:_mesa_GetAttribLocation
239 &array_index);
244 return program_resource_location(res, array_index);
446 unsigned array_index = 0; local in function:_mesa_GetFragDataLocation
449 &array_index);
454 return program_resource_location(res, array_index);
535 * Checks if array subscript is valid and if so sets array_index.
538 valid_array_index(const GLchar *name, unsigned *array_index) argument
547 if (array_index)
560 search_resource_hash(struct gl_shader_program * shProg,GLenum programInterface,const char * name,unsigned * array_index) argument
595 _mesa_program_resource_find_name(struct gl_shader_program * shProg,GLenum programInterface,const char * name,unsigned * array_index) argument
1039 program_resource_location(struct gl_program_resource * res,unsigned array_index) argument
1118 unsigned array_index = 0; local in function:_mesa_program_resource_location
[all...]
H A Dprogram_resource.c156 unsigned array_index = 0; local in function:_mesa_GetProgramResourceIndex
200 &array_index);
201 if (!res || array_index > 0)
/xsrc/external/mit/MesaLib.old/dist/src/mesa/main/
H A Dshader_query.cpp44 unsigned array_index);
201 unsigned array_index = 0; local in function:_mesa_GetAttribLocation
204 &array_index);
209 return program_resource_location(res, array_index);
414 unsigned array_index = 0; local in function:_mesa_GetFragDataLocation
417 &array_index);
422 return program_resource_location(res, array_index);
503 * Checks if array subscript is valid and if so sets array_index.
506 valid_array_index(const GLchar *name, unsigned *array_index) argument
515 if (array_index)
524 _mesa_program_resource_find_name(struct gl_shader_program * shProg,GLenum programInterface,const char * name,unsigned * array_index) argument
829 program_resource_location(struct gl_program_resource * res,unsigned array_index) argument
908 unsigned array_index = 0; local in function:_mesa_program_resource_location
[all...]
/xsrc/external/mit/MesaLib/dist/src/amd/vulkan/
H A Dradv_nir_lower_ycbcr_textures.c250 unsigned array_index = 0; local in function:try_lower_tex_ycbcr
255 array_index = nir_src_as_uint(deref->arr.index);
256 array_index = MIN2(array_index, binding->array_size - 1);
258 const struct radv_sampler_ycbcr_conversion *ycbcr_sampler = ycbcr_samplers + array_index;
263 bool unnormalized_coordinates = immutable_samplers[4 * array_index + 0] & S_008F30_FORCE_UNNORMALIZED(1);
/xsrc/external/mit/MesaLib/dist/src/broadcom/vulkan/
H A Dv3dv_descriptor_set.c31 * binding layout, and array_index, it returns the map region assigned to it
38 uint32_t array_index)
43 array_index * v3dv_X(device, descriptor_bo_size)(binding_layout->type);
85 uint32_t array_index = map->array_index[index]; local in function:v3dv_descriptor_map_get_descriptor
86 assert(array_index < binding_layout->array_size);
91 binding_layout->dynamic_offset_index + array_index;
96 return &set->descriptors[binding_layout->descriptor_index + array_index];
131 uint32_t array_index = map->array_index[inde local in function:v3dv_descriptor_map_get_descriptor_bo
35 descriptor_bo_map(struct v3dv_device * device,struct v3dv_descriptor_set * set,const struct v3dv_descriptor_set_binding_layout * binding_layout,uint32_t array_index) argument
170 uint32_t array_index = map->array_index[index]; local in function:v3dv_descriptor_map_get_sampler
906 write_image_descriptor(struct v3dv_device * device,struct v3dv_descriptor * descriptor,VkDescriptorType desc_type,struct v3dv_descriptor_set * set,const struct v3dv_descriptor_set_binding_layout * binding_layout,struct v3dv_image_view * iview,struct v3dv_sampler * sampler,uint32_t array_index) argument
944 write_buffer_view_descriptor(struct v3dv_device * device,struct v3dv_descriptor * descriptor,VkDescriptorType desc_type,struct v3dv_descriptor_set * set,const struct v3dv_descriptor_set_binding_layout * binding_layout,struct v3dv_buffer_view * bview,uint32_t array_index) argument
[all...]
/xsrc/external/mit/MesaLib/dist/src/intel/vulkan/
H A Danv_nir_lower_ycbcr_textures.c235 unsigned array_index = 0; local in function:anv_nir_lower_ycbcr_textures_instr
240 array_index = nir_src_as_uint(deref->arr.index);
241 array_index = MIN2(array_index, binding->array_size - 1);
243 const struct anv_sampler *sampler = binding->immutable_samplers[array_index];
/xsrc/external/mit/MesaLib/dist/src/compiler/nir/
H A Dnir_lower_io_arrays_to_elements.c38 nir_ssa_def **array_index)
50 *array_index = nir_ssa_for_src(b, (*p)->arr.index, 1);
133 nir_ssa_def *array_index = NULL; local in function:lower_array
138 &array_index);
168 assert(array_index);
169 element_deref = nir_build_deref_array(b, element_deref, array_index);
36 get_io_offset(nir_builder * b,nir_deref_instr * deref,nir_variable * var,unsigned * element_index,unsigned * xfb_offset,nir_ssa_def ** array_index) argument
/xsrc/external/mit/MesaLib.old/dist/src/intel/vulkan/
H A Danv_nir_apply_pipeline_layout.c223 nir_ssa_def *array_index = nir_ssa_for_src(b, intrin->src[0], 1); local in function:build_index_for_res_reindex
225 array_index = nir_umin(b, array_index, nir_imm_int(b, array_size - 1));
227 return nir_iadd_imm(b, array_index, surface_index);
369 nir_ssa_def *array_index = nir_ssa_for_src(b, intrin->src[0], 1); local in function:lower_res_index_intrinsic
371 array_index = nir_umin(b, array_index, nir_imm_int(b, array_size - 1));
427 index = nir_vec2(b, nir_iadd_imm(b, array_index, surface_index),
500 nir_ssa_def *desc_offset, *array_index; local in function:build_ssbo_descriptor_load
505 array_index
570 nir_ssa_def *desc_offset, *array_index; local in function:lower_load_vulkan_descriptor
[all...]

Completed in 30 milliseconds

1234