/external/mesa3d/src/glsl/ |
glsl_symbol_table.h | 78 glsl_symbol_table(void * mem_ctx); 122 void *mem_ctx; member in struct:glsl_symbol_table
|
ir_import_prototypes.cpp | 47 void *mem_ctx) 49 this->mem_ctx = mem_ctx; 61 this->function = new(this->mem_ctx) ir_function(ir->name); 85 ir_function_signature *copy = ir->clone_prototype(mem_ctx, NULL); 100 void *mem_ctx; member in class:import_prototype_visitor 112 * \param mem_ctx hieralloc memory context used for new allocations 116 glsl_symbol_table *symbols, void *mem_ctx) 118 import_prototype_visitor v(dest, symbols, mem_ctx);
|
lower_texture_projection.cpp | 58 void *mem_ctx = hieralloc_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 = hieralloc_new(NULL); 63 hieralloc_free(this->mem_ctx); 77 void *mem_ctx; member in class:ir_variable_refcount_visitor
|
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 = hieralloc_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_if_to_cond_assign.cpp | 96 move_block_to_cond_assign(void *mem_ctx, 113 ir_dereference *deref = new(mem_ctx) ir_dereference_variable(cond_var); 118 cond_expr = new(mem_ctx) ir_expression(ir_unop_logic_not, 127 assign->condition = new(mem_ctx) ir_expression(ir_binop_logic_and, 174 void *mem_ctx = hieralloc_parent(ir); local 179 cond_var = new(mem_ctx) ir_variable(glsl_type::bool_type, 184 deref = new(mem_ctx) ir_dereference_variable(cond_var); 185 assign = new(mem_ctx) ir_assignment(deref, 192 move_block_to_cond_assign(mem_ctx, ir, cond_var, true); 193 move_block_to_cond_assign(mem_ctx, ir, cond_var, false) [all...] |
lower_vec_index_to_cond_assign.cpp | 85 void *mem_ctx = hieralloc_parent(ir); local 114 swizzle = new(base_ir) ir_swizzle(orig_deref->array->clone(mem_ctx, NULL), 170 void *mem_ctx = hieralloc_parent(ir); local 203 swizzle = new(ir) ir_swizzle(orig_deref->array->clone(mem_ctx, NULL),
|
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 | 52 this->mem_ctx = hieralloc_new(NULL); 57 hieralloc_free(this->mem_ctx); 69 void *mem_ctx; member in class:ir_dead_functions_visitor 82 signature_entry *entry = new(mem_ctx) signature_entry(sig);
|
loop_unroll.cpp | 153 void *const mem_ctx = hieralloc_parent(ir); local 160 clone_ir_list(mem_ctx, ©_list, &ir->body_instructions); 170 new(mem_ctx) ir_loop_jump(ir_loop_jump::jump_continue); 185 void *const mem_ctx = hieralloc_parent(ir); local 191 clone_ir_list(mem_ctx, ©_list, &ir->body_instructions);
|
opt_algebraic.cpp | 46 this->mem_ctx = NULL; 66 void *mem_ctx; member in class:ir_algebraic_visitor 170 return new(mem_ctx) ir_swizzle(operand, 0, 0, 0, 0, 193 if (this->mem_ctx == NULL) 194 this->mem_ctx = hieralloc_parent(ir); 221 return new(mem_ctx) ir_expression(new_op, 254 temp = new(mem_ctx) ir_expression(ir_unop_neg, 296 temp = new(mem_ctx) ir_expression(ir_unop_rcp, 318 return ir_constant::zero(mem_ctx, ir->type); 332 return new(mem_ctx) ir_expression(ir_unop_logic_not, ir->type [all...] |
glsl_types.cpp | 37 void *glsl_type::mem_ctx = NULL; member in class:glsl_type 42 if (glsl_type::mem_ctx == NULL) { 43 glsl_type::mem_ctx = hieralloc_autofree_context(); member in class:glsl_type 44 assert(glsl_type::mem_ctx != NULL); 59 this->name = hieralloc_strdup(this->mem_ctx, name); 77 this->name = hieralloc_strdup(this->mem_ctx, name); 92 this->name = hieralloc_strdup(this->mem_ctx, name); 93 this->fields.structure = hieralloc_array(this->mem_ctx, 267 char *const n = (char *) hieralloc_size(this->mem_ctx, name_length); 357 hash_table_insert(array_types, (void *) t, hieralloc_strdup(mem_ctx, key)) [all...] |
loop_analysis.cpp | 40 this->mem_ctx = hieralloc_init("loop state"); 47 hieralloc_free(this->mem_ctx); 54 loop_variable_state *ls = new(this->mem_ctx) loop_variable_state; 78 void *mem_ctx = hieralloc_parent(this); local 79 loop_variable *lv = hieralloc_zero(mem_ctx, loop_variable); 93 void *mem_ctx = hieralloc_parent(this); local 94 loop_terminator *t = hieralloc_zero(mem_ctx, loop_terminator); 450 void *mem_ctx = hieralloc_parent(ir); local 452 inc = new(mem_ctx) ir_expression(ir_unop_neg, 454 inc->clone(mem_ctx, NULL) [all...] |
loop_analysis.h | 225 void *mem_ctx; member in class:loop_state
|
loop_controls.cpp | 91 void *mem_ctx = hieralloc_init(__func__); local 94 new(mem_ctx) ir_expression(ir_binop_sub, from->type, to, from); 97 new(mem_ctx) ir_expression(ir_binop_div, sub->type, sub, increment); 106 new(mem_ctx) ir_expression(ir_unop_f2i, glsl_type::int_type, iter, 127 ? new(mem_ctx) ir_constant(iter_value + bias[i]) 128 : new(mem_ctx) ir_constant(float(iter_value + bias[i])); 131 new(mem_ctx) ir_expression(ir_binop_mul, increment->type, iter, 135 new(mem_ctx) ir_expression(ir_binop_add, mul->type, mul, from); 138 new(mem_ctx) ir_expression(op, glsl_type::bool_type, add, to); 150 hieralloc_free(mem_ctx); [all...] |
opt_constant_propagation.cpp | 81 mem_ctx = hieralloc_new(0); 82 this->acp = new(mem_ctx) exec_list; 83 this->kills = new(mem_ctx) exec_list; 87 hieralloc_free(mem_ctx); 115 void *mem_ctx; member in class:ir_constant_propagation_visitor 213 this->acp = new(mem_ctx) exec_list; 214 this->kills = new(mem_ctx) exec_list; 281 this->acp = new(mem_ctx) exec_list; 282 this->kills = new(mem_ctx) exec_list; 288 this->acp->push_tail(new(this->mem_ctx) acp_entry(a->var, a->write_mask [all...] |
opt_copy_propagation.cpp | 74 mem_ctx = hieralloc_new(0); 75 this->acp = new(mem_ctx) exec_list; 76 this->kills = new(mem_ctx) exec_list; 80 hieralloc_free(mem_ctx); 107 void *mem_ctx; member in class:ir_copy_propagation_visitor 121 this->acp = new(mem_ctx) exec_list; 122 this->kills = new(mem_ctx) exec_list; 210 this->acp = new(mem_ctx) exec_list; 211 this->kills = new(mem_ctx) exec_list; 217 this->acp->push_tail(new(this->mem_ctx) acp_entry(a->lhs, a->rhs)) [all...] |
opt_structure_splitting.cpp | 56 this->mem_ctx = NULL; 69 void *mem_ctx; member in class:variable_entry2 77 this->mem_ctx = hieralloc_new(NULL); 83 hieralloc_free(mem_ctx); 97 void *mem_ctx; member in class:ir_structure_reference_visitor 114 variable_entry2 *entry = new(mem_ctx) variable_entry2(var); 193 void *mem_ctx; member in class:ir_structure_splitting_visitor 237 *deref = new(entry->mem_ctx) ir_dereference_variable(entry->components[i]); 267 void *mem_ctx = lhs_entry ? lhs_entry->mem_ctx : rhs_entry->mem_ctx local 325 void *mem_ctx = hieralloc_new(NULL); local [all...] |
lower_mat_op_to_vec.cpp | 43 this->mem_ctx = NULL; 62 void *mem_ctx; member in class:ir_mat_op_to_vec_visitor 104 deref = new(mem_ctx) ir_dereference_variable(var); 107 deref = new(mem_ctx) ir_dereference_array(var, 108 new(mem_ctx) ir_constant(col)); 113 return new(mem_ctx) ir_swizzle(deref, row, 0, 0, 0, 1); 122 deref = new(mem_ctx) ir_dereference_variable(var); 124 deref = new(mem_ctx) ir_dereference_variable(var); 125 deref = new(mem_ctx) ir_dereference_array(deref, 126 new(mem_ctx) ir_constant(row)) [all...] |
lower_variable_index_to_cond_assign.cpp | 56 void *mem_ctx = hieralloc_parent(base_ir); local 58 new(mem_ctx) ir_dereference_array(this->array->clone(mem_ctx, NULL), 59 new(mem_ctx) ir_constant(i)); 60 ir_rvalue *variable = new(mem_ctx) ir_dereference_variable(this->var); 63 ? new(mem_ctx) ir_assignment(element, variable, condition) 64 : new(mem_ctx) ir_assignment(variable, element, condition); 80 void *mem_ctx; member in struct:switch_generator 89 this->mem_ctx = hieralloc_parent(index); 117 new(this->mem_ctx) ir_dereference_variable(index) 273 void *const mem_ctx = hieralloc_parent(base_ir); local [all...] |
glsl_types.h | 81 * easier to just hieralloc_free 'mem_ctx' (or any of its ancestors). */ 84 if (glsl_type::mem_ctx == NULL) { 85 glsl_type::mem_ctx = hieralloc_init("glsl_type"); member in class:glsl_type::glsl_type 86 assert(glsl_type::mem_ctx != NULL); 91 type = hieralloc_size(glsl_type::mem_ctx, size); 392 static void *mem_ctx; member in struct:glsl_type
|
ir.cpp | 73 void *mem_ctx = this; local 103 this->rhs = new(mem_ctx) ir_swizzle(this->rhs, rhs_swiz); 117 this->rhs = new(mem_ctx) ir_swizzle(this->rhs, rhs_swiz); 645 ir_constant::zero(void *mem_ctx, const glsl_type *type) 649 ir_constant *c = new(mem_ctx) ir_constant; [all...] |
linker.cpp | 765 link_intrastage_shaders(void *mem_ctx, 842 clone_ir_list(mem_ctx, linked->ir, main->ir); 991 add_uniform(void *mem_ctx, exec_list *uniforms, struct hash_table *ht, 999 char *field_name = hieralloc_asprintf(mem_ctx, "%s.%s", name, 1002 int firstIndex = add_uniform(mem_ctx, uniforms, ht, field_name, field_type, 1017 char *elem_name = hieralloc_asprintf(mem_ctx, "%s[%d]", name, i); 1018 int firstIndex = add_uniform(mem_ctx, uniforms, ht, elem_name, array_elem_type, 1077 void *mem_ctx = hieralloc_new(prog); local 1532 void * mem_ctx = prog; \/\/ need linked & cloned ir to persist local [all...] |