/external/mesa3d/src/glsl/ |
D | ir.cpp | 526 ir_constant::ir_constant() in ir_constant() function in ir_constant 531 ir_constant::ir_constant(const struct glsl_type *type, in ir_constant() function in ir_constant 542 ir_constant::ir_constant(float f) in ir_constant() function in ir_constant 552 ir_constant::ir_constant(unsigned int u) in ir_constant() function in ir_constant 562 ir_constant::ir_constant(int i) in ir_constant() function in ir_constant 572 ir_constant::ir_constant(bool b) in ir_constant() function in ir_constant 582 ir_constant::ir_constant(const ir_constant *c, unsigned i) in ir_constant() function in ir_constant 596 ir_constant::ir_constant(const struct glsl_type *type, exec_list *value_list) in ir_constant() function in ir_constant 605 this->array_elements = ralloc_array(this, ir_constant *, type->length); in ir_constant() 608 ir_constant *value = (ir_constant *) node; in ir_constant() [all …]
|
D | ir.h | 131 virtual class ir_constant * as_constant() { return NULL; } in as_constant() 159 virtual ir_constant *constant_expression_value(struct hash_table *variable_context = NULL); 504 ir_constant *constant_value; 514 ir_constant *constant_initializer; 547 …ir_constant *constant_expression_value(exec_list *actual_parameters, struct hash_table *variable_c… 631 ir_constant **result); 823 virtual ir_constant *constant_expression_value(struct hash_table *variable_context = NULL); 1079 virtual ir_constant *constant_expression_value(struct hash_table *variable_context = NULL); 1142 virtual ir_constant *constant_expression_value(struct hash_table *variable_context = NULL); 1371 virtual ir_constant *constant_expression_value(struct hash_table *variable_context = NULL); [all …]
|
D | lower_ubo_reference.cpp | 88 ir_rvalue *offset = new(mem_ctx) ir_constant(0u); in handle_rvalue() 119 ir_constant *const_index = deref_array->array_index->as_constant(); in handle_rvalue() 125 new(mem_ctx) ir_constant(array_stride))); in handle_rvalue() 191 new(mem_ctx) ir_constant(this->uniform_block), in ubo_load() 235 ir_constant *element = new(mem_ctx) ir_constant(i); in emit_ubo_loads() 247 ir_constant *col = new(mem_ctx) ir_constant(i); in emit_ubo_loads() 265 new(mem_ctx) ir_constant(deref_offset)); in emit_ubo_loads() 281 ir_rvalue *chan = new(mem_ctx) ir_constant((int)i); in emit_ubo_loads() 288 new(mem_ctx) ir_constant(deref_offset + i * matrix_stride)); in emit_ubo_loads()
|
D | ir_constant_expression.cpp | 63 dot(ir_constant *op0, ir_constant *op1) in dot() 97 ir_constant * 104 ir_constant * 110 ir_constant *op[Elements(this->operands)] = { NULL, }; in constant_expression_value() 148 return new(ctx) ir_constant(op[0]->has_value(op[1])); in constant_expression_value() 150 return new(ctx) ir_constant(!op[0]->has_value(op[1])); in constant_expression_value() 938 return new(ctx) ir_constant(this->type, &data); in constant_expression_value() 942 ir_constant * 950 ir_constant * 953 ir_constant *v = this->val->constant_expression_value(variable_context); in constant_expression_value() [all …]
|
D | opt_algebraic.cpp | 59 ir_constant *constant, 76 is_vec_zero(ir_constant *ir) in is_vec_zero() 82 is_vec_one(ir_constant *ir) in is_vec_one() 88 is_vec_basis(ir_constant *ir) in is_vec_basis() 128 ir_constant *constant, in reassociate_constant() 141 ir_constant *ir2_const[2]; in reassociate_constant() 189 ir_constant *op_const[2] = {NULL, NULL}; in handle_expression() 288 return ir_constant::zero(ir, ir->type); in handle_expression() 321 return ir_constant::zero(mem_ctx, ir->type); in handle_expression() 353 return ir_constant::zero(mem_ctx, ir->type); in handle_expression() [all …]
|
D | ast_function.cpp | 48 ir_constant *const constant = result->constant_expression_value(); in process_parameters() 281 ir_constant *value = sig->constant_expression_value(actual_parameters, NULL); in generate_call() 509 ir_constant *const constant = result->constant_expression_value(); in convert_component() 525 ir_constant *constant = src->as_constant(); in dereference_component() 527 return new(ctx) ir_constant(constant, component); in dereference_component() 541 ir_constant *const col_index = new(ctx) ir_constant(c); in dereference_component() 652 return new(ctx) ir_constant(constructor_type, &actual_parameters); in process_array_constructor() 662 new(ctx) ir_constant(i)); in process_array_constructor() 677 static ir_constant * 682 ir_constant *constant = ((ir_instruction *) node)->as_constant(); in constant_record_constructor() [all …]
|
D | lower_vec_index_to_swizzle.cpp | 65 ir_constant *ir_constant; in convert_vec_index_to_swizzle() local 74 ir_constant = deref->array_index->constant_expression_value(); in convert_vec_index_to_swizzle() 75 if (!ir_constant) in convert_vec_index_to_swizzle() 95 const int i = MIN2(MAX2(ir_constant->value.i[0], 0), in convert_vec_index_to_swizzle()
|
D | lower_clip_distance.cpp | 139 ir_constant *old_index_constant = old_index->constant_expression_value(); in create_indices() 146 array_index = new(ctx) ir_constant(const_val / 4); in create_indices() 147 swizzle_index = new(ctx) ir_constant(const_val % 4); in create_indices() 163 new(ctx) ir_constant(2)); in create_indices() 170 new(ctx) ir_constant(3)); in create_indices() 236 ir->lhs->clone(ctx, NULL), new(ctx) ir_constant(i)); in visit_leave() 239 ir->rhs->clone(ctx, NULL), new(ctx) ir_constant(i)); in visit_leave()
|
D | ir_clone.cpp | 344 ir_constant * 345 ir_constant::clone(void *mem_ctx, struct hash_table *ht) const in clone() 354 return new(mem_ctx) ir_constant(this->type, &this->value); in clone() 357 ir_constant *c = new(mem_ctx) ir_constant; in clone() 363 ir_constant *const orig = (ir_constant *) node; in clone() 372 ir_constant *c = new(mem_ctx) ir_constant; in clone() 375 c->array_elements = ralloc_array(c, ir_constant *, this->type->length); in clone()
|
D | link_uniform_initializers.cpp | 51 const ir_constant *val, in copy_constant_to_storage() 83 ir_constant *val) in set_uniform_initializer() 86 ir_constant *field_constant; in set_uniform_initializer() 88 field_constant = (ir_constant *)val->components.get_head(); in set_uniform_initializer() 96 field_constant = (ir_constant *)field_constant->next; in set_uniform_initializer()
|
D | lower_vector.cpp | 72 const ir_constant *const c = op->as_constant(); in is_extended_swizzle() 162 const ir_constant *const c = expr->operands[i]->as_constant(); in handle_rvalue() 184 ir_constant *const c = in handle_rvalue() 185 new(mem_ctx) ir_constant(glsl_type::get_instance(expr->type->base_type, in handle_rvalue()
|
D | loop_controls.cpp | 99 ir_constant *iter = div->constant_expression_value(); in calculate_iterations() 127 ? new(mem_ctx) ir_constant(iter_value + bias[i]) in calculate_iterations() 128 : new(mem_ctx) ir_constant(float(iter_value + bias[i])); in calculate_iterations() 140 ir_constant *const cmp_result = cmp->constant_expression_value(); in calculate_iterations() 217 ir_constant *limit = cond->operands[1]->as_constant(); in visit_leave()
|
D | lower_variable_index_to_cond_assign.cpp | 96 ir_constant *const test_indices = in compare_index_block() 97 new(mem_ctx) ir_constant(broadcast_index->type, in compare_index_block() 208 ir_constant *const index = new(mem_ctx) ir_constant(i); in generate() 295 ir_constant *const middle_c = (index->type->base_type == GLSL_TYPE_UINT) in bisect() 296 ? new(this->mem_ctx) ir_constant((unsigned)middle) in bisect() 297 : new(this->mem_ctx) ir_constant((int)middle); in bisect()
|
D | opt_constant_folding.cpp | 82 ir_constant *constant = (*rvalue)->constant_expression_value(); in handle_rvalue() 101 ir_constant *const_val = ir->condition->as_constant(); in visit_enter() 142 ir_constant *const_val = ir->constant_expression_value(); in visit_enter()
|
D | ast_to_hir.cpp | 823 new(mem_ctx) ir_constant(i)); in do_comparison() 825 new(mem_ctx) ir_constant(i)); in do_comparison() 874 cmp = new(mem_ctx) ir_constant(true); in do_comparison() 906 return new(ctx) ir_constant(true); in get_scalar_boolean_operand() 960 return new(ctx) ir_constant((unsigned) 1); in constant_one_for_inc_dec() 962 return new(ctx) ir_constant(1); in constant_one_for_inc_dec() 965 return new(ctx) ir_constant(1.0f); in constant_one_for_inc_dec() 1166 result = new(ctx) ir_constant(false); in hir() 1229 new(ctx) ir_assignment(else_deref, new(ctx) ir_constant(false)); in hir() 1259 new(ctx) ir_assignment(then_deref, new(ctx) ir_constant(true)); in hir() [all …]
|
D | ir_visitor.h | 58 virtual void visit(class ir_constant *) = 0; 81 virtual void visit(class ir_constant *) {} in visit() argument
|
D | lower_discard.cpp | 154 condition = new(mem_ctx) ir_constant(true); in replace_discard() 180 new(mem_ctx) ir_constant(false), NULL); in visit_leave()
|
D | lower_jumps.cpp | 190 …his->signature) ir_dereference_variable(execute_flag), new(this->signature) ir_constant(true), 0)); in get_execute_flag() 202 …this->signature) ir_dereference_variable(break_flag), new(this->signature) ir_constant(false), 0)); in get_break_flag() 230 …his->signature) ir_dereference_variable(return_flag), new(this->signature) ir_constant(false), 0)); in get_return_flag() 324 new (ir) ir_constant(true))); in insert_lowered_return() 352 new(ctx) ir_constant(true), in create_lowered_break() 677 …ir) ir_assignment(new (ir) ir_dereference_variable(execute_flag), new (ir) ir_constant(false), 0)); in visit()
|
D | opt_constant_propagation.cpp | 49 acp_entry(ir_variable *var, unsigned write_mask, ir_constant *constant) in acp_entry() 68 ir_constant *constant; 213 *rvalue = new(ralloc_parent(deref)) ir_constant(type, &data); in handle_rvalue() 441 ir_constant *constant = ir->rhs->as_constant(); in add_constant()
|
D | lower_discard_flow.cpp | 89 ir_rvalue *rhs = new(mem_ctx) ir_constant(true); in visit_enter() 111 ir_rvalue *rhs = new(mem_ctx) ir_constant(false); in visit_enter()
|
D | lower_instructions.cpp | 204 ir_constant *log2_e = new(ir) ir_constant(float(M_LOG2E)); in exp_to_exp2() 232 ir->operands[1] = new(ir) ir_constant(float(1.0 / M_LOG2E)); in log_to_log2()
|
/external/mesa3d/src/glsl/tests/ |
D | uniform_initializer_utils.cpp | 75 ir_constant *&val, unsigned data_index_base) in generate_data_element() 106 val = new(mem_ctx) ir_constant(type, &data); in generate_data_element() 134 ir_constant *&val) in generate_data() 148 ir_constant *&val) in generate_array_data() 164 ir_constant *element; in generate_array_data() 170 val = new(mem_ctx) ir_constant(array_type, &values_for_array); in generate_array_data() 186 ir_constant *val, unsigned red_zone_size) in verify_data()
|
D | uniform_initializer_utils.h | 38 ir_constant *&val); 43 ir_constant *&val); 47 ir_constant *val, unsigned red_zone_size);
|
D | copy_constant_to_storage_tests.cpp | 33 const ir_constant *val, 69 ir_constant *val; in int_test() 88 ir_constant *val; in uint_test() 107 ir_constant *val; in float_test() 126 ir_constant *val; in bool_test() 150 ir_constant *val; in sampler_test()
|
/external/mesa3d/src/mesa/main/ |
D | ff_fragment_shader.cpp | 550 ir_rvalue *index = new(p->mem_ctx) ir_constant(attrib); in get_current_attrib() 594 new(p->mem_ctx) ir_constant(unit)); in get_source() 602 return new(p->mem_ctx) ir_constant(0.0f); in get_source() 629 return sub(new(p->mem_ctx) ir_constant(1.0f), src); in emit_combine_source() 637 return sub(new(p->mem_ctx) ir_constant(1.0f), scalar); in emit_combine_source() 641 return new(p->mem_ctx) ir_constant(0.0f); in emit_combine_source() 643 return new(p->mem_ctx) ir_constant(1.0f); in emit_combine_source() 728 return add(add(src[0], src[1]), new(p->mem_ctx) ir_constant(-0.5f)); in emit_combine() 733 tmp1 = mul(src[1], sub(new(p->mem_ctx) ir_constant(1.0f), in emit_combine() 744 tmp0 = mul(src[0], new(p->mem_ctx) ir_constant(2.0f)); in emit_combine() [all …]
|