Searched refs:mem_ctx (Results 26 - 50 of 176) sorted by relevance

12345678

/external/mesa3d/src/glsl/tests/
H A Duniform_initializer_utils.h36 generate_data(void *mem_ctx, enum glsl_base_type base_type,
41 generate_array_data(void *mem_ctx, enum glsl_base_type base_type,
H A Dcopy_constant_to_storage_tests.cpp50 void *mem_ctx; member in class:copy_constant_to_storage
56 this->mem_ctx = ralloc_context(NULL);
62 ralloc_free(this->mem_ctx);
63 this->mem_ctx = NULL;
70 generate_data(mem_ctx, GLSL_TYPE_INT, 1, rows, val);
89 generate_data(mem_ctx, GLSL_TYPE_UINT, 1, rows, val);
108 generate_data(mem_ctx, GLSL_TYPE_FLOAT, columns, rows, val);
127 generate_data(mem_ctx, GLSL_TYPE_BOOL, 1, rows, val);
151 generate_data(mem_ctx, GLSL_TYPE_INT, 1, 1, val);
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/i965/
H A Dbrw_fs_vector_splitting.cpp60 this->mem_ctx = NULL;
73 void *mem_ctx; member in class:variable_entry
80 this->mem_ctx = ralloc_context(NULL);
86 ralloc_free(mem_ctx);
100 void *mem_ctx; member in class:ir_vector_reference_visitor
131 variable_entry *entry = new(mem_ctx) variable_entry(var);
254 *rvalue = new(entry->mem_ctx) ir_dereference_variable(var);
272 void *mem_ctx = lhs ? lhs->mem_ctx : rhs->mem_ctx; local
302 void *mem_ctx = lhs->mem_ctx; local
361 void *mem_ctx = ralloc_context(NULL); local
[all...]
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...]
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/drivers/dri/i965/
H A Dbrw_fs_vector_splitting.cpp60 this->mem_ctx = NULL;
73 void *mem_ctx; member in class:variable_entry
80 this->mem_ctx = ralloc_context(NULL);
86 ralloc_free(mem_ctx);
100 void *mem_ctx; member in class:ir_vector_reference_visitor
131 variable_entry *entry = new(mem_ctx) variable_entry(var);
254 *rvalue = new(entry->mem_ctx) ir_dereference_variable(var);
272 void *mem_ctx = lhs ? lhs->mem_ctx : rhs->mem_ctx; local
302 void *mem_ctx = lhs->mem_ctx; local
361 void *mem_ctx = ralloc_context(NULL); local
[all...]
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...]
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/chromium_org/third_party/mesa/src/src/glsl/
H A Dlower_ubo_reference.cpp57 void *mem_ctx; member in class:__anon14260::lower_ubo_reference_visitor
84 mem_ctx = ralloc_parent(*rvalue);
88 ir_rvalue *offset = new(mem_ctx) ir_constant(0u);
125 new(mem_ctx) ir_constant(array_stride)));
166 ir_variable *load_var = new(mem_ctx) ir_variable(type,
171 ir_variable *load_offset = new(mem_ctx) ir_variable(glsl_type::uint_type,
177 deref = new(mem_ctx) ir_dereference_variable(load_var);
188 return new(mem_ctx)
191 new(mem_ctx) ir_constant(this->uniform_block),
216 new(mem_ctx) ir_dereference_recor
[all...]
H A Dopt_structure_splitting.cpp58 this->mem_ctx = NULL;
75 void *mem_ctx; member in class:__anon14273::variable_entry2
83 this->mem_ctx = ralloc_context(NULL);
89 ralloc_free(mem_ctx);
103 void *mem_ctx; member in class:__anon14273::ir_structure_reference_visitor
120 variable_entry2 *entry = new(mem_ctx) variable_entry2(var);
249 *deref = new(entry->mem_ctx) ir_dereference_variable(entry->components[i]);
279 void *mem_ctx = lhs_entry ? lhs_entry->mem_ctx : rhs_entry->mem_ctx; local
339 void *mem_ctx = ralloc_context(NULL); local
[all...]
H A Dir_builder.cpp42 var = new(mem_ctx) ir_variable(type, name, ir_var_temporary);
51 void *mem_ctx = ralloc_parent(lhs.val); local
53 ir_assignment *assign = new(mem_ctx) ir_assignment(lhs.val,
69 void *mem_ctx = ralloc_parent(a.val); local
71 return new(mem_ctx) ir_swizzle(a.val,
82 void *mem_ctx = ralloc_parent(a.val); local
91 return new(mem_ctx) ir_swizzle(a.val, s, components);
163 void *mem_ctx = ralloc_parent(a.val); local
165 return new(mem_ctx) ir_expression(op, a.val);
171 void *mem_ctx local
199 void *mem_ctx = ralloc_parent(a.val); local
[all...]
H A Dlower_variable_index_to_cond_assign.cpp66 * \param mem_ctx ralloc memory context to be used for all allocations.
74 unsigned base, unsigned components, void *mem_ctx)
76 ir_rvalue *broadcast_index = new(mem_ctx) ir_dereference_variable(index);
84 broadcast_index = new(mem_ctx) ir_swizzle(broadcast_index, m);
97 new(mem_ctx) ir_constant(broadcast_index->type,
101 new(mem_ctx) ir_expression(ir_binop_equal,
107 new(mem_ctx) ir_variable(condition_val->type,
113 new(mem_ctx) ir_dereference_variable(condition);
114 instructions->push_tail(new(mem_ctx) ir_assignment(cond_deref, condition_val, 0));
202 void *mem_ctx local
73 compare_index_block(exec_list *instructions, ir_variable *index, unsigned base, unsigned components, void *mem_ctx) argument
235 void *mem_ctx; member in struct:switch_generator
399 void *const mem_ctx = ralloc_parent(base_ir); local
[all...]
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 Dir_builder.h46 void *mem_ctx = ralloc_parent(var); local
47 val = new(mem_ctx) ir_dereference_variable(var);
66 void *mem_ctx = ralloc_parent(var); local
67 val = new(mem_ctx) ir_dereference_variable(var);
80 void *mem_ctx; member in class:ir_builder::ir_factory
H A Dopt_array_splitting.cpp55 this->mem_ctx = NULL;
77 void *mem_ctx; member in class:opt_array_splitting::variable_entry
92 this->mem_ctx = ralloc_context(NULL);
98 ralloc_free(mem_ctx);
113 void *mem_ctx; member in class:ir_array_reference_visitor
140 variable_entry *entry = new(mem_ctx) variable_entry(var);
299 *deref = new(entry->mem_ctx)
308 ir_variable *temp = new(entry->mem_ctx) ir_variable(deref_array->type,
312 *deref = new(entry->mem_ctx) ir_dereference_variable(temp);
362 void *mem_ctx local
[all...]
/external/mesa3d/src/glsl/
H A Dlower_ubo_reference.cpp57 void *mem_ctx; member in class:__anon27671::lower_ubo_reference_visitor
84 mem_ctx = ralloc_parent(*rvalue);
88 ir_rvalue *offset = new(mem_ctx) ir_constant(0u);
125 new(mem_ctx) ir_constant(array_stride)));
166 ir_variable *load_var = new(mem_ctx) ir_variable(type,
171 ir_variable *load_offset = new(mem_ctx) ir_variable(glsl_type::uint_type,
177 deref = new(mem_ctx) ir_dereference_variable(load_var);
188 return new(mem_ctx)
191 new(mem_ctx) ir_constant(this->uniform_block),
216 new(mem_ctx) ir_dereference_recor
[all...]
H A Dopt_structure_splitting.cpp58 this->mem_ctx = NULL;
75 void *mem_ctx; member in class:__anon27684::variable_entry2
83 this->mem_ctx = ralloc_context(NULL);
89 ralloc_free(mem_ctx);
103 void *mem_ctx; member in class:__anon27684::ir_structure_reference_visitor
120 variable_entry2 *entry = new(mem_ctx) variable_entry2(var);
249 *deref = new(entry->mem_ctx) ir_dereference_variable(entry->components[i]);
279 void *mem_ctx = lhs_entry ? lhs_entry->mem_ctx : rhs_entry->mem_ctx; local
339 void *mem_ctx = ralloc_context(NULL); local
[all...]
H A Dir_builder.cpp42 var = new(mem_ctx) ir_variable(type, name, ir_var_temporary);
51 void *mem_ctx = ralloc_parent(lhs.val); local
53 ir_assignment *assign = new(mem_ctx) ir_assignment(lhs.val,
69 void *mem_ctx = ralloc_parent(a.val); local
71 return new(mem_ctx) ir_swizzle(a.val,
82 void *mem_ctx = ralloc_parent(a.val); local
91 return new(mem_ctx) ir_swizzle(a.val, s, components);
163 void *mem_ctx = ralloc_parent(a.val); local
165 return new(mem_ctx) ir_expression(op, a.val);
171 void *mem_ctx local
199 void *mem_ctx = ralloc_parent(a.val); local
[all...]
H A Dlower_variable_index_to_cond_assign.cpp66 * \param mem_ctx ralloc memory context to be used for all allocations.
74 unsigned base, unsigned components, void *mem_ctx)
76 ir_rvalue *broadcast_index = new(mem_ctx) ir_dereference_variable(index);
84 broadcast_index = new(mem_ctx) ir_swizzle(broadcast_index, m);
97 new(mem_ctx) ir_constant(broadcast_index->type,
101 new(mem_ctx) ir_expression(ir_binop_equal,
107 new(mem_ctx) ir_variable(condition_val->type,
113 new(mem_ctx) ir_dereference_variable(condition);
114 instructions->push_tail(new(mem_ctx) ir_assignment(cond_deref, condition_val, 0));
202 void *mem_ctx local
73 compare_index_block(exec_list *instructions, ir_variable *index, unsigned base, unsigned components, void *mem_ctx) argument
235 void *mem_ctx; member in struct:switch_generator
399 void *const mem_ctx = ralloc_parent(base_ir); local
[all...]
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 Dir_builder.h46 void *mem_ctx = ralloc_parent(var); local
47 val = new(mem_ctx) ir_dereference_variable(var);
66 void *mem_ctx = ralloc_parent(var); local
67 val = new(mem_ctx) ir_dereference_variable(var);
80 void *mem_ctx; member in class:ir_builder::ir_factory
H A Dopt_array_splitting.cpp55 this->mem_ctx = NULL;
77 void *mem_ctx; member in class:opt_array_splitting::variable_entry
92 this->mem_ctx = ralloc_context(NULL);
98 ralloc_free(mem_ctx);
113 void *mem_ctx; member in class:ir_array_reference_visitor
140 variable_entry *entry = new(mem_ctx) variable_entry(var);
299 *deref = new(entry->mem_ctx)
308 ir_variable *temp = new(entry->mem_ctx) ir_variable(deref_array->type,
312 *deref = new(entry->mem_ctx) ir_dereference_variable(temp);
362 void *mem_ctx local
[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/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 Dcopy_constant_to_storage_tests.cpp50 void *mem_ctx; member in class:copy_constant_to_storage
56 this->mem_ctx = ralloc_context(NULL);
62 ralloc_free(this->mem_ctx);
63 this->mem_ctx = NULL;
70 generate_data(mem_ctx, GLSL_TYPE_INT, 1, rows, val);
89 generate_data(mem_ctx, GLSL_TYPE_UINT, 1, rows, val);
108 generate_data(mem_ctx, GLSL_TYPE_FLOAT, columns, rows, val);
127 generate_data(mem_ctx, GLSL_TYPE_BOOL, 1, rows, val);
151 generate_data(mem_ctx, GLSL_TYPE_INT, 1, 1, val);

Completed in 306 milliseconds

12345678