/external/mesa3d/src/glsl/ |
D | lower_instructions.cpp | 94 ir_visitor_status visit_leave(ir_expression *); 101 void sub_to_add_neg(ir_expression *); 102 void div_to_mul_rcp(ir_expression *); 103 void int_div_to_mul_rcp(ir_expression *); 104 void mod_to_fract(ir_expression *); 105 void exp_to_exp2(ir_expression *); 106 void pow_to_exp2(ir_expression *); 107 void log_to_log2(ir_expression *); 125 lower_instructions_visitor::sub_to_add_neg(ir_expression *ir) in sub_to_add_neg() 128 ir->operands[1] = new(ir) ir_expression(ir_unop_neg, ir->operands[1]->type, in sub_to_add_neg() [all …]
|
D | lower_mat_op_to_vec.cpp | 69 ir_expression *expr = ir->as_expression(); in mat_op_to_vec_predicate() 127 ir_expression *expr; in do_mul_mat_mat() 131 expr = new(mem_ctx) ir_expression(ir_binop_mul, in do_mul_mat_mat() 137 ir_expression *mul_expr; in do_mul_mat_mat() 139 mul_expr = new(mem_ctx) ir_expression(ir_binop_mul, in do_mul_mat_mat() 142 expr = new(mem_ctx) ir_expression(ir_binop_add, in do_mul_mat_mat() 159 ir_expression *expr; in do_mul_mat_vec() 162 expr = new(mem_ctx) ir_expression(ir_binop_mul, in do_mul_mat_vec() 168 ir_expression *mul_expr; in do_mul_mat_vec() 170 mul_expr = new(mem_ctx) ir_expression(ir_binop_mul, in do_mul_mat_vec() [all …]
|
D | opt_algebraic.cpp | 55 ir_rvalue *handle_expression(ir_expression *ir); 57 bool reassociate_constant(ir_expression *ir1, 60 ir_expression *ir2); 61 void reassociate_operands(ir_expression *ir1, 63 ir_expression *ir2, 65 ir_rvalue *swizzle_if_required(ir_expression *expr, 94 update_type(ir_expression *ir) in update_type() 103 ir_algebraic_visitor::reassociate_operands(ir_expression *ir1, in reassociate_operands() 105 ir_expression *ir2, in reassociate_operands() 127 ir_algebraic_visitor::reassociate_constant(ir_expression *ir1, int const_index, in reassociate_constant() [all …]
|
D | loop_controls.cpp | 93 ir_expression *const sub = in calculate_iterations() 94 new(mem_ctx) ir_expression(ir_binop_sub, from->type, to, from); in calculate_iterations() 96 ir_expression *const div = in calculate_iterations() 97 new(mem_ctx) ir_expression(ir_binop_div, sub->type, sub, increment); in calculate_iterations() 106 new(mem_ctx) ir_expression(ir_unop_f2i, glsl_type::int_type, iter, in calculate_iterations() 130 ir_expression *const mul = in calculate_iterations() 131 new(mem_ctx) ir_expression(ir_binop_mul, increment->type, iter, in calculate_iterations() 134 ir_expression *const add = in calculate_iterations() 135 new(mem_ctx) ir_expression(ir_binop_add, mul->type, mul, from); in calculate_iterations() 137 ir_expression *const cmp = in calculate_iterations() [all …]
|
D | ir_builder.h | 86 ir_expression *expr(ir_expression_operation op, operand a); 87 ir_expression *expr(ir_expression_operation op, operand a, operand b); 88 ir_expression *add(operand a, operand b); 89 ir_expression *sub(operand a, operand b); 90 ir_expression *mul(operand a, operand b); 91 ir_expression *dot(operand a, operand b); 92 ir_expression *saturate(operand a);
|
D | ir_builder.cpp | 160 ir_expression * 165 return new(mem_ctx) ir_expression(op, a.val); in expr() 168 ir_expression * 173 return new(mem_ctx) ir_expression(op, a.val, b.val); in expr() 176 ir_expression *add(operand a, operand b) in add() 181 ir_expression *sub(operand a, operand b) in sub() 186 ir_expression *mul(operand a, operand b) in mul() 191 ir_expression *dot(operand a, operand b) in dot() 196 ir_expression *
|
D | lower_texture_projection.cpp | 64 ir_expression *expr = new(mem_ctx) ir_expression(ir_unop_rcp, in visit_leave() 72 ir->coordinate = new(mem_ctx) ir_expression(ir_binop_mul, in visit_leave() 79 ir->shadow_comparitor = new(mem_ctx) ir_expression(ir_binop_mul, in visit_leave()
|
D | ir_rvalue_visitor.h | 39 ir_visitor_status rvalue_visit(ir_expression *); 55 virtual ir_visitor_status visit_leave(ir_expression *); 69 virtual ir_visitor_status visit_enter(ir_expression *);
|
D | lower_vector.cpp | 58 is_extended_swizzle(ir_expression *ir) in is_extended_swizzle() 93 ir_expression *const ex = (ir_expression *) op; in is_extended_swizzle() 121 ir_expression *expr = (*rvalue)->as_expression(); in handle_rvalue()
|
D | ir.cpp | 199 ir_expression::ir_expression(int op, const struct glsl_type *type, in ir_expression() function in ir_expression 212 ir_expression::ir_expression(int op, const struct glsl_type *type, in ir_expression() function in ir_expression 226 ir_expression::ir_expression(int op, const struct glsl_type *type, in ir_expression() function in ir_expression 239 ir_expression::ir_expression(int op, ir_rvalue *op0) in ir_expression() function in ir_expression 323 ir_expression::ir_expression(int op, ir_rvalue *op0, ir_rvalue *op1) in ir_expression() function in ir_expression 401 ir_expression::get_num_operands(ir_expression_operation op) in get_num_operands() 487 const char *ir_expression::operator_string(ir_expression_operation op) in operator_string() 494 const char *ir_expression::operator_string() in operator_string() 516 ir_expression::get_operator(const char *str) in get_operator() 1688 ir_expression *expr = ir->as_expression(); in try_min_one() [all …]
|
D | ast_function.cpp | 437 ir_expression *result = NULL; in convert_component() 452 result = new(ctx) ir_expression(ir_unop_i2u, src); in convert_component() 455 result = new(ctx) ir_expression(ir_unop_f2u, src); in convert_component() 458 result = new(ctx) ir_expression(ir_unop_i2u, in convert_component() 459 new(ctx) ir_expression(ir_unop_b2i, src)); in convert_component() 466 result = new(ctx) ir_expression(ir_unop_u2i, src); in convert_component() 469 result = new(ctx) ir_expression(ir_unop_f2i, src); in convert_component() 472 result = new(ctx) ir_expression(ir_unop_b2i, src); in convert_component() 479 result = new(ctx) ir_expression(ir_unop_u2f, desired_type, src, NULL); in convert_component() 482 result = new(ctx) ir_expression(ir_unop_i2f, desired_type, src, NULL); in convert_component() [all …]
|
D | ir_rvalue_visitor.cpp | 39 ir_rvalue_base_visitor::rvalue_visit(ir_expression *ir) in rvalue_visit() 147 ir_rvalue_visitor::visit_leave(ir_expression *ir) in visit_leave() 201 ir_rvalue_enter_visitor::visit_enter(ir_expression *ir) in visit_enter()
|
D | lower_if_to_cond_assign.cpp | 134 new(mem_ctx) ir_expression(ir_binop_logic_and, in move_block_to_cond_assign() 143 new(mem_ctx) ir_expression(ir_binop_logic_and, in move_block_to_cond_assign() 231 new(mem_ctx) ir_expression(ir_unop_logic_not, in visit_leave()
|
D | ir.h | 123 virtual class ir_expression * as_expression() { return NULL; } in as_expression() 1041 class ir_expression : public ir_rvalue { 1046 ir_expression(int op, const struct glsl_type *type, ir_rvalue *); 1047 ir_expression(int op, ir_rvalue *); 1052 ir_expression(int op, const struct glsl_type *type, 1054 ir_expression(int op, ir_rvalue *op0, ir_rvalue *op1); 1059 ir_expression(int op, const struct glsl_type *type, 1062 virtual ir_expression *as_expression() in as_expression() 1067 virtual ir_expression *clone(void *mem_ctx, struct hash_table *ht) const;
|
D | ir_visitor.h | 51 virtual void visit(class ir_expression *) = 0; 74 virtual void visit(class ir_expression *) {} in visit() argument
|
D | lower_clip_distance.cpp | 136 old_index = new(ctx) ir_expression(ir_unop_u2i, old_index); in create_indices() 161 array_index = new(ctx) ir_expression( in create_indices() 168 swizzle_index = new(ctx) ir_expression( in create_indices()
|
D | ast_to_hir.cpp | 148 from = new(ctx) ir_expression(ir_unop_i2f, to, from, NULL); in apply_implicit_conversion() 151 from = new(ctx) ir_expression(ir_unop_u2f, to, from, NULL); in apply_implicit_conversion() 154 from = new(ctx) ir_expression(ir_unop_b2f, to, from, NULL); in apply_implicit_conversion() 816 return new(mem_ctx) ir_expression(operation, op0, op1); in do_comparison() 829 cmp = new(mem_ctx) ir_expression(join_op, cmp, result); in do_comparison() 852 cmp = new(mem_ctx) ir_expression(join_op, cmp, result); in do_comparison() 1067 result = new(ctx) ir_expression(operations[this->oper], type, in hir() 1083 result = new(ctx) ir_expression(operations[this->oper], type, in hir() 1095 result = new(ctx) ir_expression(operations[this->oper], type, in hir() 1112 result = new(ctx) ir_expression(operations[this->oper], type, in hir() [all …]
|
D | ir_hierarchical_visitor.h | 117 virtual ir_visitor_status visit_enter(class ir_expression *); 118 virtual ir_visitor_status visit_leave(class ir_expression *);
|
D | lower_vec_index_to_swizzle.cpp | 51 virtual ir_visitor_status visit_enter(ir_expression *); 102 ir_vec_index_to_swizzle_visitor::visit_enter(ir_expression *ir) in visit_enter()
|
D | lower_ubo_reference.cpp | 54 ir_expression *ubo_load(const struct glsl_type *type, 184 ir_expression * 189 ir_expression(ir_binop_ubo_load, in ubo_load()
|
D | ir_set_program_inouts.cpp | 64 virtual ir_visitor_status visit_enter(ir_expression *); 175 ir_set_program_inouts_visitor::visit_enter(ir_expression *ir) in visit_enter()
|
D | ir_hierarchical_visitor.cpp | 129 ir_hierarchical_visitor::visit_enter(ir_expression *ir) in visit_enter() 138 ir_hierarchical_visitor::visit_leave(ir_expression *ir) in visit_leave()
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_fs_channel_expressions.cpp | 72 ir_expression *expr = ir->as_expression(); in channel_expressions_predicate() 135 ir_expression *expr = ir->rhs->as_expression(); in visit_leave() 222 assign(ir, i, new(mem_ctx) ir_expression(expr->operation, in visit_leave() 252 assign(ir, i, new(mem_ctx) ir_expression(expr->operation, in visit_leave() 260 ir_expression *temp; in visit_leave() 261 temp = new(mem_ctx) ir_expression(ir_binop_logic_or, in visit_leave() 267 temp = new(mem_ctx) ir_expression(ir_binop_logic_or, in visit_leave() 277 ir_expression *last = NULL; in visit_leave() 281 ir_expression *temp; in visit_leave() 283 temp = new(mem_ctx) ir_expression(ir_binop_mul, in visit_leave() [all …]
|
D | brw_cubemap_normalize.cpp | 74 swiz0 = new(mem_ctx) ir_expression(ir_unop_abs, swiz0->type, swiz0, NULL); in visit_leave() 75 swiz1 = new(mem_ctx) ir_expression(ir_unop_abs, swiz1->type, swiz1, NULL); in visit_leave() 76 swiz2 = new(mem_ctx) ir_expression(ir_unop_abs, swiz2->type, swiz2, NULL); in visit_leave() 78 ir_expression *expr; in visit_leave() 79 expr = new(mem_ctx) ir_expression(ir_binop_max, in visit_leave() 83 expr = new(mem_ctx) ir_expression(ir_binop_max, in visit_leave() 87 expr = new(mem_ctx) ir_expression(ir_unop_rcp, in visit_leave() 92 ir->coordinate = new(mem_ctx) ir_expression(ir_binop_mul, in visit_leave()
|
/external/mesa3d/src/mesa/program/ |
D | ir_to_mesa.cpp | 257 virtual void visit(ir_expression *); 313 bool try_emit_mad(ir_expression *ir, 315 bool try_emit_mad_for_and_not(ir_expression *ir, 317 bool try_emit_sat(ir_expression *ir); 319 void emit_swz(ir_expression *ir); 775 ir_expression *e = in visit() 776 new(mem_ctx) ir_expression(ir->cmp, glsl_type::bool_type, in visit() 791 ir_expression *e = in visit() 792 new(mem_ctx) ir_expression(ir_binop_add, counter->type, in visit() 848 ir_to_mesa_visitor::try_emit_mad(ir_expression *ir, int mul_operand) in try_emit_mad() [all …]
|