• Home
  • Raw
  • Download

Lines Matching refs:mem_ctx

31 ir_rvalue::clone(void *mem_ctx, struct hash_table *) const  in clone()  argument
34 return error_value(mem_ctx); in clone()
41 ir_variable::clone(void *mem_ctx, struct hash_table *ht) const in clone() argument
43 ir_variable *var = new(mem_ctx) ir_variable(this->type, this->name, in clone()
63 var->constant_value = this->constant_value->clone(mem_ctx, ht); in clone()
67 this->constant_initializer->clone(mem_ctx, ht); in clone()
78 ir_swizzle::clone(void *mem_ctx, struct hash_table *ht) const in clone() argument
80 return new(mem_ctx) ir_swizzle(this->val->clone(mem_ctx, ht), this->mask); in clone()
84 ir_return::clone(void *mem_ctx, struct hash_table *ht) const in clone() argument
89 new_value = this->value->clone(mem_ctx, ht); in clone()
91 return new(mem_ctx) ir_return(new_value); in clone()
95 ir_discard::clone(void *mem_ctx, struct hash_table *ht) const in clone() argument
100 new_condition = this->condition->clone(mem_ctx, ht); in clone()
102 return new(mem_ctx) ir_discard(new_condition); in clone()
106 ir_demote::clone(void *mem_ctx, struct hash_table *ht) const in clone() argument
108 return new(mem_ctx) ir_demote(); in clone()
112 ir_loop_jump::clone(void *mem_ctx, struct hash_table *ht) const in clone() argument
116 return new(mem_ctx) ir_loop_jump(this->mode); in clone()
120 ir_if::clone(void *mem_ctx, struct hash_table *ht) const in clone() argument
122 ir_if *new_if = new(mem_ctx) ir_if(this->condition->clone(mem_ctx, ht)); in clone()
125 new_if->then_instructions.push_tail(ir->clone(mem_ctx, ht)); in clone()
129 new_if->else_instructions.push_tail(ir->clone(mem_ctx, ht)); in clone()
136 ir_loop::clone(void *mem_ctx, struct hash_table *ht) const in clone() argument
138 ir_loop *new_loop = new(mem_ctx) ir_loop(); in clone()
141 new_loop->body_instructions.push_tail(ir->clone(mem_ctx, ht)); in clone()
148 ir_call::clone(void *mem_ctx, struct hash_table *ht) const in clone() argument
152 new_return_ref = this->return_deref->clone(mem_ctx, ht); in clone()
157 new_parameters.push_tail(ir->clone(mem_ctx, ht)); in clone()
160 return new(mem_ctx) ir_call(this->callee, new_return_ref, &new_parameters); in clone()
164 ir_expression::clone(void *mem_ctx, struct hash_table *ht) const in clone() argument
170 op[i] = this->operands[i]->clone(mem_ctx, ht); in clone()
173 return new(mem_ctx) ir_expression(this->operation, this->type, in clone()
178 ir_dereference_variable::clone(void *mem_ctx, struct hash_table *ht) const in clone() argument
189 return new(mem_ctx) ir_dereference_variable(new_var); in clone()
193 ir_dereference_array::clone(void *mem_ctx, struct hash_table *ht) const in clone() argument
195 return new(mem_ctx) ir_dereference_array(this->array->clone(mem_ctx, ht), in clone()
196 this->array_index->clone(mem_ctx, in clone()
201 ir_dereference_record::clone(void *mem_ctx, struct hash_table *ht) const in clone() argument
206 return new(mem_ctx) ir_dereference_record(this->record->clone(mem_ctx, ht), in clone()
211 ir_texture::clone(void *mem_ctx, struct hash_table *ht) const in clone() argument
213 ir_texture *new_tex = new(mem_ctx) ir_texture(this->op); in clone()
216 new_tex->sampler = this->sampler->clone(mem_ctx, ht); in clone()
218 new_tex->coordinate = this->coordinate->clone(mem_ctx, ht); in clone()
220 new_tex->projector = this->projector->clone(mem_ctx, ht); in clone()
222 new_tex->shadow_comparator = this->shadow_comparator->clone(mem_ctx, ht); in clone()
226 new_tex->offset = this->offset->clone(mem_ctx, ht); in clone()
236 new_tex->lod_info.bias = this->lod_info.bias->clone(mem_ctx, ht); in clone()
241 new_tex->lod_info.lod = this->lod_info.lod->clone(mem_ctx, ht); in clone()
244 new_tex->lod_info.sample_index = this->lod_info.sample_index->clone(mem_ctx, ht); in clone()
247 new_tex->lod_info.grad.dPdx = this->lod_info.grad.dPdx->clone(mem_ctx, ht); in clone()
248 new_tex->lod_info.grad.dPdy = this->lod_info.grad.dPdy->clone(mem_ctx, ht); in clone()
251 new_tex->lod_info.component = this->lod_info.component->clone(mem_ctx, ht); in clone()
259 ir_assignment::clone(void *mem_ctx, struct hash_table *ht) const in clone() argument
264 new_condition = this->condition->clone(mem_ctx, ht); in clone()
267 new(mem_ctx) ir_assignment(this->lhs->clone(mem_ctx, ht), in clone()
268 this->rhs->clone(mem_ctx, ht), in clone()
275 ir_function::clone(void *mem_ctx, struct hash_table *ht) const in clone() argument
277 ir_function *copy = new(mem_ctx) ir_function(this->name); in clone()
282 …copy->subroutine_types = ralloc_array(mem_ctx, const struct glsl_type *, copy->num_subroutine_type… in clone()
287 ir_function_signature *sig_copy = sig->clone(mem_ctx, ht); in clone()
300 ir_function_signature::clone(void *mem_ctx, struct hash_table *ht) const in clone() argument
302 ir_function_signature *copy = this->clone_prototype(mem_ctx, ht); in clone()
309 ir_instruction *const inst_copy = inst->clone(mem_ctx, ht); in clone()
317 ir_function_signature::clone_prototype(void *mem_ctx, struct hash_table *ht) const in clone_prototype() argument
320 new(mem_ctx) ir_function_signature(this->return_type); in clone_prototype()
331 ir_variable *const param_copy = param->clone(mem_ctx, ht); in clone_prototype()
339 ir_constant::clone(void *mem_ctx, struct hash_table *ht) const in clone() argument
358 return new(mem_ctx) ir_constant(this->type, &this->value); in clone()
362 ir_constant *c = new(mem_ctx) ir_constant; in clone()
367 c->const_elements[i] = this->const_elements[i]->clone(mem_ctx, NULL); in clone()
426 clone_ir_list(void *mem_ctx, exec_list *out, const exec_list *in) in clone_ir_list() argument
431 ir_instruction *copy = original->clone(mem_ctx, ht); in clone_ir_list()