Searched defs:mem_ctx (Results 26 - 50 of 140) sorted by relevance

123456

/external/chromium_org/third_party/mesa/src/src/glsl/
H A Dopt_dead_functions.cpp54 this->mem_ctx = ralloc_context(NULL);
59 ralloc_free(this->mem_ctx);
69 void *mem_ctx; member in class:__anon14268::ir_dead_functions_visitor
83 signature_entry *entry = new(mem_ctx) signature_entry(sig);
H A Dlink_uniform_initializers.cpp81 set_uniform_initializer(void *mem_ctx, gl_shader_program *prog, argument
92 const char *field_name = ralloc_asprintf(mem_ctx, "%s.%s", name,
94 set_uniform_initializer(mem_ctx, prog, field_name,
103 const char *element_name = ralloc_asprintf(mem_ctx, "%s[%d]", name, i);
105 set_uniform_initializer(mem_ctx, prog, element_name,
158 void *mem_ctx = NULL; local
172 if (!mem_ctx)
173 mem_ctx = ralloc_context(NULL);
175 linker::set_uniform_initializer(mem_ctx, prog, var->name,
180 ralloc_free(mem_ctx);
[all...]
H A Dloop_unroll.cpp192 void *const mem_ctx = ralloc_parent(ir); local
199 clone_ir_list(mem_ctx, &copy_list, &ir->body_instructions);
209 new(mem_ctx) ir_loop_jump(ir_loop_jump::jump_continue);
224 void *const mem_ctx = ralloc_parent(ir); local
230 clone_ir_list(mem_ctx, &copy_list, &ir->body_instructions);
H A Dlower_output_reads.cpp48 void *mem_ctx; member in class:output_read_remover
75 mem_ctx = ralloc_context(NULL);
83 ralloc_free(mem_ctx);
H A Dlower_vec_index_to_cond_assign.cpp83 void *mem_ctx = ralloc_parent(ir); local
109 mem_ctx);
120 new(base_ir) ir_swizzle(orig_deref->array->clone(mem_ctx, NULL),
181 void *mem_ctx = ralloc_parent(ir); local
209 mem_ctx);
221 new(ir) ir_swizzle(orig_deref->array->clone(mem_ctx, NULL),
237 ir_if *if_stmt = new(mem_ctx) ir_if(ir->condition);
H A Dlower_vector.cpp130 void *const mem_ctx = expr; local
137 new(mem_ctx) ir_variable(expr->type, "vecop_tmp", ir_var_temporary);
185 new(mem_ctx) ir_constant(glsl_type::get_instance(expr->type->base_type,
188 ir_dereference *const lhs = new(mem_ctx) ir_dereference_variable(temp);
190 new(mem_ctx) ir_assignment(lhs, c, NULL, write_mask);
201 ir_dereference *const lhs = new(mem_ctx) ir_dereference_variable(temp);
203 new(mem_ctx) ir_assignment(lhs, expr->operands[i], NULL, (1U << i));
211 *rvalue = new(mem_ctx) ir_dereference_variable(temp);
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/i965/
H A Dbrw_clip.c57 void *mem_ctx; local
63 mem_ctx = ralloc_context(NULL);
67 brw_init_compile(brw, &c.func, mem_ctx);
130 ralloc_free(mem_ctx);
H A Dbrw_fs_cse.cpp88 void *mem_ctx = ralloc_context(this->mem_ctx); local
118 aeb_entry *entry = ralloc(mem_ctx, aeb_entry);
166 ralloc_free(mem_ctx);
H A Dbrw_fs_live_variables.h73 void *mem_ctx; member in class:brw::fs_live_variables
H A Dbrw_gs.c53 void *mem_ctx; local
62 mem_ctx = ralloc_context(NULL);
66 brw_init_compile(brw, &c.func, mem_ctx);
126 ralloc_free(mem_ctx);
150 ralloc_free(mem_ctx);
H A Dbrw_lower_texture_gradients.cpp93 void *mem_ctx = ralloc_parent(ir); local
100 ir_texture *txs = new(mem_ctx) ir_texture(ir_txs);
101 txs->set_sampler(ir->sampler->clone(mem_ctx, NULL),
103 txs->lod_info.lod = new(mem_ctx) ir_constant(0);
105 new(mem_ctx) ir_variable(grad_type, "size", ir_var_temporary);
109 base_ir->insert_before(assign(size, new(mem_ctx) ir_constant(1.0f), WRITEMASK_Z));
120 new(mem_ctx) ir_variable(grad_type, "dPdx", ir_var_temporary);
124 new(mem_ctx) ir_variable(grad_type, "dPdy", ir_var_temporary);
H A Dbrw_eu.c174 brw_init_compile(struct brw_context *brw, struct brw_compile *p, void *mem_ctx) argument
183 p->store = rzalloc_array(mem_ctx, struct brw_instruction, p->store_size);
189 p->mem_ctx = mem_ctx;
201 p->if_stack = rzalloc_array(mem_ctx, int, p->if_stack_array_size);
205 p->loop_stack = rzalloc_array(mem_ctx, int, p->loop_stack_array_size);
206 p->if_depth_in_loop = rzalloc_array(mem_ctx, int, p->loop_stack_array_size);
H A Dbrw_fs_cfg.h52 fs_bblock_link *make_list(void *mem_ctx);
56 void add_successor(void *mem_ctx, fs_bblock *successor);
95 void *mem_ctx; member in class:fs_cfg
H A Dbrw_fs_channel_expressions.cpp57 this->mem_ctx = NULL;
66 void *mem_ctx; member in class:ir_channel_expressions_visitor
108 return new(mem_ctx) ir_dereference_variable(var);
111 deref = new(mem_ctx) ir_dereference_variable(var);
112 return new(mem_ctx) ir_swizzle(deref, elem, 0, 0, 0, 1);
118 ir_dereference *lhs = ir->lhs->clone(mem_ctx, NULL);
128 assign = new(mem_ctx) ir_assignment(lhs, val, NULL, (1 << elem));
143 if (!this->mem_ctx)
144 this->mem_ctx = ralloc_parent(ir);
165 op_var[i] = new(mem_ctx) ir_variabl
[all...]
/external/chromium_org/third_party/mesa/src/src/mesa/program/
H A Dsampler.cpp45 this->mem_ctx = ralloc_context(NULL);
54 ralloc_free(this->mem_ctx);
65 this->name = ralloc_asprintf(mem_ctx, "%s.%s", name, ir->field);
91 this->name = ralloc_asprintf(mem_ctx, "%s[%d]", name, i);
100 void *mem_ctx; member in class:get_sampler_name
/external/mesa3d/src/glsl/
H A Dlower_discard.cpp148 replace_discard(void *mem_ctx, ir_variable *var, ir_discard *ir) argument
154 condition = new(mem_ctx) ir_constant(true);
157 new(mem_ctx) ir_assignment(new(mem_ctx) ir_dereference_variable(var),
173 void *mem_ctx = ralloc_parent(ir); local
175 ir_variable *temp = new(mem_ctx) ir_variable(glsl_type::bool_type,
179 new(mem_ctx) ir_assignment(new(mem_ctx) ir_dereference_variable(temp),
180 new(mem_ctx) ir_constant(false), NULL);
186 replace_discard(mem_ctx, tem
[all...]
H A Dopt_dead_functions.cpp54 this->mem_ctx = ralloc_context(NULL);
59 ralloc_free(this->mem_ctx);
69 void *mem_ctx; member in class:__anon27679::ir_dead_functions_visitor
83 signature_entry *entry = new(mem_ctx) signature_entry(sig);
/external/mesa3d/src/mesa/drivers/dri/i965/
H A Dbrw_clip.c57 void *mem_ctx; local
63 mem_ctx = ralloc_context(NULL);
67 brw_init_compile(brw, &c.func, mem_ctx);
130 ralloc_free(mem_ctx);
H A Dbrw_fs_cse.cpp88 void *mem_ctx = ralloc_context(this->mem_ctx); local
118 aeb_entry *entry = ralloc(mem_ctx, aeb_entry);
166 ralloc_free(mem_ctx);
H A Dbrw_fs_live_variables.h73 void *mem_ctx; member in class:brw::fs_live_variables
H A Dbrw_gs.c53 void *mem_ctx; local
62 mem_ctx = ralloc_context(NULL);
66 brw_init_compile(brw, &c.func, mem_ctx);
126 ralloc_free(mem_ctx);
150 ralloc_free(mem_ctx);
H A Dbrw_lower_texture_gradients.cpp93 void *mem_ctx = ralloc_parent(ir); local
100 ir_texture *txs = new(mem_ctx) ir_texture(ir_txs);
101 txs->set_sampler(ir->sampler->clone(mem_ctx, NULL),
103 txs->lod_info.lod = new(mem_ctx) ir_constant(0);
105 new(mem_ctx) ir_variable(grad_type, "size", ir_var_temporary);
109 base_ir->insert_before(assign(size, new(mem_ctx) ir_constant(1.0f), WRITEMASK_Z));
120 new(mem_ctx) ir_variable(grad_type, "dPdx", ir_var_temporary);
124 new(mem_ctx) ir_variable(grad_type, "dPdy", ir_var_temporary);
/external/mesa3d/src/mesa/program/
H A Dsampler.cpp45 this->mem_ctx = ralloc_context(NULL);
54 ralloc_free(this->mem_ctx);
65 this->name = ralloc_asprintf(mem_ctx, "%s.%s", name, ir->field);
91 this->name = ralloc_asprintf(mem_ctx, "%s[%d]", name, i);
100 void *mem_ctx; member in class:get_sampler_name
/external/chromium_org/third_party/mesa/src/src/glsl/tests/
H A Dset_uniform_initializer_tests.cpp32 set_uniform_initializer(void *mem_ctx, gl_shader_program *prog,
64 void *mem_ctx; member in class:set_uniform_initializer
70 this->mem_ctx = ralloc_context(NULL);
82 ralloc_free(this->mem_ctx);
83 this->mem_ctx = NULL;
162 non_array_test(void *mem_ctx, struct gl_shader_program *prog, argument
174 generate_data(mem_ctx, base_type, columns, rows, val);
176 linker::set_uniform_initializer(mem_ctx, prog, name, type, val);
185 non_array_test(mem_ctx, prog, actual_index, name, GLSL_TYPE_INT, 1, 1);
190 non_array_test(mem_ctx, pro
309 array_test(void *mem_ctx, struct gl_shader_program *prog, unsigned actual_index, const char *name, enum glsl_base_type base_type, unsigned columns, unsigned rows, unsigned array_size, unsigned excess_data_size) argument
[all...]
H A Duniform_initializer_utils.cpp74 generate_data_element(void *mem_ctx, const glsl_type *type, argument
106 val = new(mem_ctx) ir_constant(type, &data);
132 generate_data(void *mem_ctx, enum glsl_base_type base_type, argument
142 generate_data_element(mem_ctx, type, val, 0);
146 generate_array_data(void *mem_ctx, enum glsl_base_type base_type, argument
166 generate_data_element(mem_ctx, element_type, element, i);
170 val = new(mem_ctx) ir_constant(array_type, &values_for_array);

Completed in 497 milliseconds

123456