/external/mesa3d/src/glsl/ |
D | ir.h | 124 virtual class ir_rvalue * as_rvalue() { return NULL; } in as_rvalue() 146 class ir_rvalue : public ir_instruction { 150 virtual ir_rvalue *clone(void *mem_ctx, struct hash_table *) const; 161 virtual ir_rvalue * as_rvalue() in as_rvalue() 166 ir_rvalue *as_rvalue_to_saturate(); 255 static ir_rvalue *error_value(void *mem_ctx); 258 ir_rvalue(); 717 ir_if(ir_rvalue *condition) in ir_if() 737 ir_rvalue *condition; 786 ir_rvalue *from; /** Value of the loop counter on the first [all …]
|
D | ast_function.cpp | 30 static ir_rvalue * 31 convert_component(ir_rvalue *src, const glsl_type *desired_type); 34 apply_implicit_conversion(const glsl_type *to, ir_rvalue * &from, 46 ir_rvalue *result = ast->hir(instructions, state); in process_parameters() 116 const ir_rvalue *const actual = (ir_rvalue *) actual_ir_node; in verify_parameter_modes() 184 static ir_rvalue * 204 ir_rvalue *actual = (ir_rvalue *) actual_iter.get(); in generate_call() 214 ir_rvalue *converted in generate_call() 249 ir_rvalue *converted_tmp in generate_call() 431 static ir_rvalue * [all …]
|
D | ast.h | 79 virtual ir_rvalue *hir(exec_list *instructions, 215 virtual ir_rvalue *hir(exec_list *instructions, 285 virtual ir_rvalue *hir(exec_list *instructions, 311 virtual ir_rvalue *hir(exec_list *instructions, 460 virtual ir_rvalue *hir(exec_list *instructions, 496 ir_rvalue *hir(exec_list *, struct _mesa_glsl_parse_state *); 525 virtual ir_rvalue *hir(exec_list *instructions, 559 virtual ir_rvalue *hir(exec_list *instructions, 590 virtual ir_rvalue *hir(exec_list *instructions, 628 virtual ir_rvalue *hir(exec_list *instructions, [all …]
|
D | lower_vec_index_to_cond_assign.cpp | 55 ir_rvalue *convert_vec_index_to_cond_assign(ir_rvalue *val); 67 ir_rvalue * 68 ir_vec_index_to_cond_assign_visitor::convert_vec_index_to_cond_assign(ir_rvalue *ir) in convert_vec_index_to_cond_assign() 106 ir_rvalue *const cond_deref = in convert_vec_index_to_cond_assign() 113 ir_rvalue *condition_swizzle = in convert_vec_index_to_cond_assign() 119 ir_rvalue *swizzle = in convert_vec_index_to_cond_assign() 206 ir_rvalue *const cond_deref = in visit_leave() 213 ir_rvalue *condition_swizzle = in visit_leave() 220 ir_rvalue *swizzle = in visit_leave() 256 ir_rvalue *param = (ir_rvalue *)iter.get(); in visit_enter() [all …]
|
D | ir.cpp | 29 ir_rvalue::ir_rvalue() in ir_rvalue() function in ir_rvalue 34 bool ir_rvalue::is_zero() const in is_zero() 39 bool ir_rvalue::is_one() const in is_one() 44 bool ir_rvalue::is_negative_one() const in is_negative_one() 49 bool ir_rvalue::is_basis() const in is_basis() 76 ir_assignment::set_lhs(ir_rvalue *lhs) in set_lhs() 154 ir_assignment::ir_assignment(ir_dereference *lhs, ir_rvalue *rhs, in ir_assignment() 155 ir_rvalue *condition, unsigned write_mask) in ir_assignment() 174 ir_assignment::ir_assignment(ir_rvalue *lhs, ir_rvalue *rhs, in ir_assignment() 175 ir_rvalue *condition) in ir_assignment() [all …]
|
D | lower_vec_index_to_swizzle.cpp | 49 ir_rvalue *convert_vec_index_to_swizzle(ir_rvalue *val); 61 ir_rvalue * 62 ir_vec_index_to_swizzle_visitor::convert_vec_index_to_swizzle(ir_rvalue *ir) in convert_vec_index_to_swizzle() 138 ir_rvalue *param = (ir_rvalue *)iter.get(); in visit_enter() 139 ir_rvalue *new_param = convert_vec_index_to_swizzle(param); in visit_enter()
|
D | lower_clip_distance.cpp | 60 void create_indices(ir_rvalue*, ir_rvalue *&, ir_rvalue *&); 125 lower_clip_distance_visitor::create_indices(ir_rvalue *old_index, in create_indices() 126 ir_rvalue *&array_index, in create_indices() 127 ir_rvalue *&swizzle_index) in create_indices() 192 ir_rvalue *array_index; in visit_leave() 193 ir_rvalue *swizzle_index; in visit_leave() 283 ir_rvalue *actual_param = (ir_rvalue *) actual_param_node; in visit_leave()
|
D | lower_variable_index_to_cond_assign.cpp | 72 ir_rvalue * 76 ir_rvalue *broadcast_index = new(mem_ctx) ir_dereference_variable(index); in compare_index_block() 100 ir_rvalue *const condition_val = in compare_index_block() 112 ir_rvalue *const cond_deref = in compare_index_block() 120 is_array_or_matrix(const ir_rvalue *ir) in is_array_or_matrix() 133 deref_replacer(const ir_variable *variable_to_replace, ir_rvalue *value) in deref_replacer() 141 virtual void handle_rvalue(ir_rvalue **rvalue) in handle_rvalue() 152 ir_rvalue *value; 197 void generate(unsigned i, ir_rvalue* condition, exec_list *list) const in generate() 216 ir_rvalue *variable = new(mem_ctx) ir_dereference_variable(this->var); in generate() [all …]
|
D | ast_to_hir.cpp | 114 apply_implicit_conversion(const glsl_type *to, ir_rvalue * &from, in apply_implicit_conversion() 165 arithmetic_result_type(ir_rvalue * &value_a, ir_rvalue * &value_b, in arithmetic_result_type() 496 relational_result_type(ir_rvalue * &value_a, ir_rvalue * &value_b, in relational_result_type() 623 ir_rvalue * 625 const glsl_type *lhs_type, ir_rvalue *rhs, in validate_assignment() 662 mark_whole_array_access(ir_rvalue *access) in mark_whole_array_access() 671 ir_rvalue * 674 ir_rvalue *lhs, ir_rvalue *rhs, bool is_initializer, in do_assignment() 713 ir_rvalue *new_rhs = in do_assignment() 772 static ir_rvalue * [all …]
|
D | opt_constant_folding.cpp | 56 virtual void handle_rvalue(ir_rvalue **rvalue); 64 ir_constant_folding_visitor::handle_rvalue(ir_rvalue **rvalue) in handle_rvalue() 127 ir_rvalue *param_rval = (ir_rvalue *)iter.get(); in visit_enter() 131 ir_rvalue *new_param = param_rval; in visit_enter()
|
D | lower_ubo_reference.cpp | 51 void handle_rvalue(ir_rvalue **rvalue); 55 ir_rvalue *offset); 71 lower_ubo_reference_visitor::handle_rvalue(ir_rvalue **rvalue) in handle_rvalue() 88 ir_rvalue *offset = new(mem_ctx) ir_constant(0u); in handle_rvalue() 186 ir_rvalue *offset) in ubo_load() 264 ir_rvalue *offset = add(base_offset, in emit_ubo_loads() 281 ir_rvalue *chan = new(mem_ctx) ir_constant((int)i); in emit_ubo_loads() 286 ir_rvalue *chan_offset = in emit_ubo_loads()
|
D | opt_algebraic.cpp | 55 ir_rvalue *handle_expression(ir_expression *ir); 56 void handle_rvalue(ir_rvalue **rvalue); 65 ir_rvalue *swizzle_if_required(ir_expression *expr, 66 ir_rvalue *operand); 108 ir_rvalue *temp = ir2->operands[op2]; in reassociate_operands() 175 ir_rvalue * 177 ir_rvalue *operand) in swizzle_if_required() 186 ir_rvalue * 426 ir_algebraic_visitor::handle_rvalue(ir_rvalue **rvalue) in handle_rvalue()
|
D | loop_controls.cpp | 44 ir_rvalue * 85 calculate_iterations(ir_rvalue *from, ir_rvalue *to, ir_rvalue *increment, in calculate_iterations() 105 ir_rvalue *cast = in calculate_iterations() 216 ir_rvalue *counter = cond->operands[0]->as_dereference_variable(); in visit_leave() 238 ir_rvalue *init = find_initial_value(ir, var); in visit_leave()
|
D | opt_function_inlining.cpp | 86 ir_rvalue *lhs = orig_deref->clone(ctx, NULL); in replace_return_with_assignment() 123 ir_rvalue *param = (ir_rvalue *) param_iter.get(); in generate_inline() 297 void replace_rvalue(ir_rvalue **rvalue); 313 ir_sampler_replacement_visitor::replace_rvalue(ir_rvalue **rvalue) in replace_rvalue() 353 ir_rvalue *param = (ir_rvalue *)iter.get(); in visit_leave() 354 ir_rvalue *new_param = param; in visit_leave()
|
D | hir_field_selection.cpp | 30 ir_rvalue * 36 ir_rvalue *result = NULL; in _mesa_ast_field_selection_to_hir() 37 ir_rvalue *op; in _mesa_ast_field_selection_to_hir() 101 return result ? result : ir_rvalue::error_value(ctx); in _mesa_ast_field_selection_to_hir()
|
D | ir_expression_flattening.cpp | 52 void handle_rvalue(ir_rvalue **rvalue); 70 ir_expression_flattening_visitor::handle_rvalue(ir_rvalue **rvalue) in handle_rvalue() 74 ir_rvalue *ir = *rvalue; in handle_rvalue()
|
D | loop_analysis.cpp | 30 static bool all_expression_operands_are_loop_constant(ir_rvalue *, 33 static ir_rvalue *get_basic_induction_increment(ir_assignment *, hash_table *); 295 ir_rvalue *const rhs = lv->first_assignment->rhs; in visit_leave() 338 ir_rvalue *const inc = in visit_leave() 432 all_expression_operands_are_loop_constant(ir_rvalue *ir, hash_table *variables) in all_expression_operands_are_loop_constant() 442 ir_rvalue * 466 ir_rvalue *inc = (op0 == var) ? rhs->operands[1] : rhs->operands[0]; in get_basic_induction_increment()
|
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() 121 ir_rvalue *if_condition = new(mem_ctx) ir_dereference_variable(discarded); in generate_discard_break()
|
D | opt_tree_grafting.cpp | 83 bool do_graft(ir_rvalue **rvalue); 119 ir_tree_grafting_visitor::do_graft(ir_rvalue **rvalue) in do_graft() 211 ir_rvalue *ir = (ir_rvalue *)iter.get(); in visit_enter() 212 ir_rvalue *new_ir = ir; in visit_enter()
|
D | ir_reader.cpp | 56 ir_rvalue *read_rvalue(s_expression *); 444 ir_rvalue *condition = read_rvalue(s_cond); in read_if() 494 ir_rvalue *retval = read_rvalue(s_retval); in read_return() 509 ir_rvalue * 522 ir_rvalue *rvalue = read_dereference(list); in read_rvalue() 555 ir_rvalue *condition = NULL; in read_assignment() 597 ir_rvalue *rhs = read_rvalue(rhs_expr); in read_assignment() 637 ir_rvalue *param = read_rvalue(expr); in read_call() 703 ir_rvalue *arg1 = read_rvalue(s_arg1); in read_expression() 704 ir_rvalue *arg2 = NULL; in read_expression() [all …]
|
D | opt_noop_swizzle.cpp | 47 void handle_rvalue(ir_rvalue **rvalue); 54 ir_noop_swizzle_visitor::handle_rvalue(ir_rvalue **rvalue) in handle_rvalue()
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_fs_channel_expressions.cpp | 62 ir_rvalue *get_element(ir_variable *var, unsigned int element); 63 void assign(ir_assignment *ir, int elem, ir_rvalue *val); 102 ir_rvalue * 116 ir_channel_expressions_visitor::assign(ir_assignment *ir, int elem, ir_rvalue *val) in assign() 220 ir_rvalue *op0 = get_element(op_var[0], i); in visit_leave() 249 ir_rvalue *op0 = get_element(op_var[0], i); in visit_leave() 250 ir_rvalue *op1 = get_element(op_var[1], i); in visit_leave() 279 ir_rvalue *op0 = get_element(op_var[0], i); in visit_leave() 280 ir_rvalue *op1 = get_element(op_var[1], i); in visit_leave() 311 ir_rvalue *op0 = get_element(op_var[0], i); in visit_leave() [all …]
|
D | brw_cubemap_normalize.cpp | 68 ir_rvalue *swiz0 = new(mem_ctx) ir_swizzle(deref, 0, 0, 0, 0, 1); in visit_leave() 70 ir_rvalue *swiz1 = new(mem_ctx) ir_swizzle(deref, 1, 0, 0, 0, 1); in visit_leave() 72 ir_rvalue *swiz2 = new(mem_ctx) ir_swizzle(deref, 2, 0, 0, 0, 1); in visit_leave()
|
D | brw_lower_texture_gradients.cpp | 47 void emit(ir_variable *, ir_rvalue *); 54 lower_texture_grad_visitor::emit(ir_variable *var, ir_rvalue *value) in emit() 128 ir_rvalue *rho; in visit_leave()
|
/external/mesa3d/src/mesa/main/ |
D | ff_fragment_shader.cpp | 536 ir_rvalue *src_previous; /**< Reg containing color from previous 541 static ir_rvalue * 545 ir_rvalue *val; in get_current_attrib() 550 ir_rvalue *index = new(p->mem_ctx) ir_constant(attrib); in get_current_attrib() 554 static ir_rvalue * 566 static ir_rvalue * 617 static ir_rvalue * 623 ir_rvalue *src; in emit_combine_source() 635 ir_rvalue *const scalar = src->type->is_scalar() ? src : swizzle_w(src); in emit_combine_source() 692 static ir_rvalue * [all …]
|