Lines Matching refs:var
50 variable_entry2(ir_variable *var) in variable_entry2() argument
52 this->var = var; in variable_entry2()
59 ir_variable *var; /* The key: the variable's pointer. */ member in variable_entry2
92 variable_entry2 *get_variable_entry2(ir_variable *var);
101 ir_structure_reference_visitor::get_variable_entry2(ir_variable *var) in get_variable_entry2() argument
103 assert(var); in get_variable_entry2()
105 if (!var->type->is_record() || var->mode == ir_var_uniform) in get_variable_entry2()
110 if (entry->var == var) in get_variable_entry2()
114 variable_entry2 *entry = new(mem_ctx) variable_entry2(var); in get_variable_entry2()
134 ir_variable *const var = ir->variable_referenced(); in visit() local
135 variable_entry2 *entry = this->get_variable_entry2(var); in visit()
190 variable_entry2 *get_splitting_entry(ir_variable *var);
197 ir_structure_splitting_visitor::get_splitting_entry(ir_variable *var) in get_splitting_entry() argument
199 assert(var); in get_splitting_entry()
201 if (!var->type->is_record()) in get_splitting_entry()
206 if (entry->var == var) { in get_splitting_entry()
225 variable_entry2 *entry = get_splitting_entry(deref_var->var); in split_deref()
230 for (i = 0; i < entry->var->type->length; i++) { in split_deref()
232 entry->var->type->fields.structure[i].name) == 0) in split_deref()
235 assert(i != entry->var->type->length); in split_deref()
260 variable_entry2 *lhs_entry = lhs_deref ? get_splitting_entry(lhs_deref->var) : NULL; in visit_leave()
261 variable_entry2 *rhs_entry = rhs_deref ? get_splitting_entry(rhs_deref->var) : NULL; in visit_leave()
313 entry->var->name, (void *) entry->var, entry->declaration, in do_structure_splitting()
332 const struct glsl_type *type = entry->var->type; in do_structure_splitting()
334 entry->mem_ctx = hieralloc_parent(entry->var); in do_structure_splitting()
340 for (unsigned int i = 0; i < entry->var->type->length; i++) { in do_structure_splitting()
342 entry->var->name, in do_structure_splitting()
349 entry->var->insert_before(entry->components[i]); in do_structure_splitting()
352 entry->var->remove(); in do_structure_splitting()