/external/mesa3d/src/glsl/tests/ |
ralloc_test.cpp | 34 void *mem_ctx = ralloc_context(NULL); local 36 EXPECT_EQ(NULL, ralloc_parent(mem_ctx));
|
copy_constant_to_storage_tests.cpp | 50 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);
|
set_uniform_initializer_tests.cpp | 32 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, 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, prog, actual_index, name, GLSL_TYPE_INT, 1, 2) [all...] |
/external/mesa3d/src/glsl/ |
ir_builder.h | 46 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
|
ir_print_visitor.h | 90 void *mem_ctx; member in class:ir_print_visitor
|
glsl_symbol_table.h | 122 void *mem_ctx; member in struct:glsl_symbol_table
|
ir_import_prototypes.cpp | 46 void *mem_ctx) 48 this->mem_ctx = mem_ctx; 60 this->function = new(this->mem_ctx) ir_function(ir->name); 84 ir_function_signature *copy = ir->clone_prototype(mem_ctx, NULL); 99 void *mem_ctx; member in class:import_prototype_visitor 111 * \param mem_ctx ralloc memory context used for new allocations 115 glsl_symbol_table *symbols, void *mem_ctx) 117 import_prototype_visitor v(dest, symbols, mem_ctx);
|
lower_texture_projection.cpp | 58 void *mem_ctx = ralloc_parent(ir); local 60 ir_variable *var = new(mem_ctx) ir_variable(ir->projector->type, 63 ir_dereference *deref = new(mem_ctx) ir_dereference_variable(var); 64 ir_expression *expr = new(mem_ctx) ir_expression(ir_unop_rcp, 68 ir_assignment *assign = new(mem_ctx) ir_assignment(deref, expr, NULL); 71 deref = new(mem_ctx) ir_dereference_variable(var); 72 ir->coordinate = new(mem_ctx) ir_expression(ir_binop_mul, 78 deref = new(mem_ctx) ir_dereference_variable(var); 79 ir->shadow_comparitor = new(mem_ctx) ir_expression(ir_binop_mul,
|
ir_variable_refcount.h | 57 this->mem_ctx = ralloc_context(NULL); 63 ralloc_free(this->mem_ctx); 77 void *mem_ctx; member in class:ir_variable_refcount_visitor
|
lower_discard_flow.cpp | 56 mem_ctx = ralloc_parent(discarded); 71 void *mem_ctx; member in class:lower_discard_flow_visitor 88 ir_dereference *lhs = new(mem_ctx) ir_dereference_variable(discarded); 89 ir_rvalue *rhs = new(mem_ctx) ir_constant(true); 90 ir_assignment *assign = new(mem_ctx) ir_assignment(lhs, rhs); 110 ir_dereference *lhs = new(mem_ctx) ir_dereference_variable(discarded); 111 ir_rvalue *rhs = new(mem_ctx) ir_constant(false); 112 ir_assignment *assign = new(mem_ctx) ir_assignment(lhs, rhs); 121 ir_rvalue *if_condition = new(mem_ctx) ir_dereference_variable(discarded); 122 ir_if *if_inst = new(mem_ctx) ir_if(if_condition) 133 void *mem_ctx = ir; local [all...] |
link_uniform_initializers.cpp | 81 set_uniform_initializer(void *mem_ctx, gl_shader_program *prog, 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...] |
lower_discard.cpp | 148 replace_discard(void *mem_ctx, ir_variable *var, ir_discard *ir) 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, temp, then_discard) [all...] |
lower_output_reads.cpp | 48 void *mem_ctx; member in class:output_read_remover 75 mem_ctx = ralloc_context(NULL); 83 ralloc_free(mem_ctx);
|
lower_vector.cpp | 130 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);
|
opt_dead_functions.cpp | 54 this->mem_ctx = ralloc_context(NULL); 59 ralloc_free(this->mem_ctx); 69 void *mem_ctx; member in class:__anon27637::ir_dead_functions_visitor 83 signature_entry *entry = new(mem_ctx) signature_entry(sig);
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
brw_cubemap_normalize.cpp | 57 void *mem_ctx = ralloc_parent(ir); local 59 ir_variable *var = new(mem_ctx) ir_variable(ir->coordinate->type, 62 ir_dereference *deref = new(mem_ctx) ir_dereference_variable(var); 63 ir_assignment *assign = new(mem_ctx) ir_assignment(deref, ir->coordinate, 67 deref = new(mem_ctx) ir_dereference_variable(var); 68 ir_rvalue *swiz0 = new(mem_ctx) ir_swizzle(deref, 0, 0, 0, 0, 1); 69 deref = new(mem_ctx) ir_dereference_variable(var); 70 ir_rvalue *swiz1 = new(mem_ctx) ir_swizzle(deref, 1, 0, 0, 0, 1); 71 deref = new(mem_ctx) ir_dereference_variable(var); 72 ir_rvalue *swiz2 = new(mem_ctx) ir_swizzle(deref, 2, 0, 0, 0, 1) [all...] |
brw_fs_copy_propagation.cpp | 80 fs_visitor::opt_copy_propagate_local(void *mem_ctx, 124 acp_entry *entry = ralloc(mem_ctx, acp_entry); 138 void *mem_ctx = ralloc_context(this->mem_ctx); local 146 progress = opt_copy_propagate_local(mem_ctx, block, &acp) || progress; 149 ralloc_free(mem_ctx);
|
brw_fs_live_variables.h | 73 void *mem_ctx; member in class:brw::fs_live_variables
|
brw_lower_texture_gradients.cpp | 93 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);
|
brw_sf.c | 56 void *mem_ctx; local 62 mem_ctx = ralloc_context(NULL); 65 brw_init_compile(brw, &c.func, mem_ctx); 130 ralloc_free(mem_ctx);
|
brw_clip.c | 57 void *mem_ctx; local 63 mem_ctx = ralloc_context(NULL); 67 brw_init_compile(brw, &c.func, mem_ctx); 130 ralloc_free(mem_ctx);
|
brw_fs_cfg.h | 52 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
|
brw_fs_cse.cpp | 88 void *mem_ctx = ralloc_context(this->mem_ctx); local 118 aeb_entry *entry = ralloc(mem_ctx, aeb_entry); 166 ralloc_free(mem_ctx);
|
brw_gs.c | 53 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);
|
/external/mesa3d/src/mesa/program/ |
sampler.cpp | 45 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
|