Home
last modified time | relevance | path

Searched refs:deref_var (Results 1 – 15 of 15) sorted by relevance

/external/mesa3d/src/compiler/glsl/
Dast_array_index.cpp52 if (ir_dereference_variable *deref_var = ir->as_dereference_variable()) { in update_max_array_access() local
53 ir_variable *var = deref_var->var; in update_max_array_access()
75 ir_dereference_variable *deref_var = in update_max_array_access() local
77 if (deref_var == NULL) { in update_max_array_access()
86 deref_var = deref_array_prev->array->as_dereference_variable(); in update_max_array_access()
89 if (deref_var != NULL) { in update_max_array_access()
90 if (deref_var->var->is_interface_instance()) { in update_max_array_access()
92 assert(field_idx < deref_var->var->get_interface_type()->length); in update_max_array_access()
95 deref_var->var->get_max_ifc_array_access(); in update_max_array_access()
Dopt_copy_propagation_elements.cpp266 ir_dereference_variable *deref_var; in handle_rvalue() local
277 deref_var = swizzle->val->as_dereference_variable(); in handle_rvalue()
278 if (!deref_var) in handle_rvalue()
287 deref_var = (*ir)->as_dereference_variable(); in handle_rvalue()
288 if (!deref_var) in handle_rvalue()
295 chans = deref_var->type->vector_elements; in handle_rvalue()
301 ir_variable *var = deref_var->var; in handle_rvalue()
331 shader_mem_ctx = ralloc_parent(deref_var); in handle_rvalue()
344 deref_var = new(shader_mem_ctx) ir_dereference_variable(source[0]); in handle_rvalue()
345 *ir = new(shader_mem_ctx) ir_swizzle(deref_var, in handle_rvalue()
Dir_set_program_inouts.cpp348 if (ir_dereference_variable * const deref_var = in visit_enter() local
350 if (is_multiple_vertices(this->shader_stage, deref_var->var)) { in visit_enter()
354 if (try_mark_partial_variable(deref_var->var, ir->array_index)) in visit_enter()
365 } else if (ir_dereference_variable * const deref_var = in visit_enter() local
368 if (is_multiple_vertices(this->shader_stage, deref_var->var)) { in visit_enter()
372 mark_whole_variable(deref_var->var); in visit_enter()
379 } else if (is_shader_inout(deref_var->var)) { in visit_enter()
383 if (try_mark_partial_variable(deref_var->var, ir->array_index)) in visit_enter()
Dlower_named_interface_blocks.cpp84 ir_rvalue *deref_var) in process_array_ir() argument
90 return new(mem_ctx) ir_dereference_array(deref_var, in process_array_ir()
95 deref_var); in process_array_ir()
297 ir_dereference_variable *deref_var = in handle_rvalue() local
304 (ir_rvalue *)deref_var); in handle_rvalue()
306 *rvalue = deref_var; in handle_rvalue()
Dopt_dead_code_local.cpp201 ir_dereference_variable *deref_var = ir->lhs->as_dereference_variable(); in process_assignment() local
206 if (deref_var && (deref_var->var->type->is_scalar() || in process_assignment()
207 deref_var->var->type->is_vector())) { in process_assignment()
Dopt_function_inlining.cpp365 ir_dereference_variable *deref_var = (*deref)->as_dereference_variable(); in replace_deref() local
366 if (deref_var && deref_var->var == this->orig) { in replace_deref()
Dopt_structure_splitting.cpp228 ir_dereference_variable *deref_var = deref_record->record->as_dereference_variable(); in split_deref() local
229 if (!deref_var) in split_deref()
232 variable_entry *entry = get_splitting_entry(deref_var->var); in split_deref()
Dopt_array_splitting.cpp351 ir_dereference_variable *deref_var = deref_array->array->as_dereference_variable(); in split_deref() local
352 if (!deref_var) in split_deref()
354 ir_variable *var = deref_var->var; in split_deref()
Dlower_ubo_reference.cpp685 ir_dereference_variable *deref_var = (ir_dereference_variable *)deref; in calculate_unsized_array_stride() local
691 unsized_array_type = deref_var->var->type->fields.array; in calculate_unsized_array_stride()
698 is_dereferenced_thing_row_major(deref_var); in calculate_unsized_array_stride()
Dast_function.cpp241 if (const ir_dereference_variable *deref_var = val->as_dereference_variable()) in verify_parameter_modes() local
242 var = deref_var->variable_referenced(); in verify_parameter_modes()
Dast_to_hir.cpp1030 ir_dereference_variable *deref_var = in do_assignment() local
1032 instructions->push_tail(new(ctx) ir_assignment(lhs, deref_var)); in do_assignment()
/external/mesa3d/src/compiler/nir/
Dnir_opt_copy_propagate.c198 copy_prop_deref_var(nir_instr *instr, nir_deref_var *deref_var) in copy_prop_deref_var() argument
200 if (!deref_var) in copy_prop_deref_var()
204 for (nir_deref *deref = deref_var->deref.child; in copy_prop_deref_var()
Dnir_lower_locals_to_regs.c50 const nir_deref_var *deref_var = void_deref; in hash_deref() local
51 hash = _mesa_fnv32_1a_accumulate(hash, deref_var->var); in hash_deref()
53 for (const nir_deref *deref = deref_var->deref.child; in hash_deref()
Dnir_serialize.c360 write_deref_chain(write_ctx *ctx, const nir_deref_var *deref_var) in write_deref_chain() argument
362 write_object(ctx, deref_var->var); in write_deref_chain()
365 for (const nir_deref *d = deref_var->deref.child; d; d = d->child) in write_deref_chain()
369 for (const nir_deref *d = deref_var->deref.child; d; d = d->child) { in write_deref_chain()
397 nir_deref_var *deref_var = nir_deref_var_create(mem_ctx, var); in read_deref_chain() local
401 nir_deref *tail = &deref_var->deref; in read_deref_chain()
431 return deref_var; in read_deref_chain()
/external/mesa3d/src/compiler/spirv/
Dvtn_variables.c389 nir_deref_var *deref_var; in vtn_pointer_to_deref() local
391 deref_var = nir_deref_var_create(b, ptr->var->var); in vtn_pointer_to_deref()
394 return deref_var; in vtn_pointer_to_deref()
398 deref_var = rzalloc(b, nir_deref_var); in vtn_pointer_to_deref()
399 deref_var->deref.deref_type = nir_deref_type_var; in vtn_pointer_to_deref()
406 nir_deref *tail = &deref_var->deref; in vtn_pointer_to_deref()
449 deref_var->var = members[idx]; in vtn_pointer_to_deref()
450 rewrite_deref_types(b, &deref_var->deref, members[idx]->type); in vtn_pointer_to_deref()
467 return deref_var; in vtn_pointer_to_deref()