/external/mesa3d/src/compiler/glsl/ |
D | lower_packing_builtins.cpp | 56 void handle_rvalue(ir_rvalue **rvalue) in handle_rvalue() 73 ir_rvalue *op0 = expr->operands[0]; in handle_rvalue() 207 ir_rvalue* 208 pack_uvec2_to_uint(ir_rvalue *uvec2_rval) in pack_uvec2_to_uint() 236 ir_rvalue* 237 pack_uvec4_to_uint(ir_rvalue *uvec4_rval) in pack_uvec4_to_uint() 273 ir_rvalue* 274 unpack_uint_to_uvec2(ir_rvalue *uint_rval) in unpack_uint_to_uvec2() 302 ir_rvalue * 303 unpack_uint_to_ivec2(ir_rvalue *uint_rval) in unpack_uint_to_ivec2() [all …]
|
D | ir.h | 219 class ir_rvalue : public ir_instruction { 223 virtual ir_rvalue *clone(void *mem_ctx, struct hash_table *) const; 235 ir_rvalue *as_rvalue_to_saturate(); 314 static ir_rvalue *error_value(void *mem_ctx); 317 ir_rvalue(enum ir_node_type t); 1377 ir_if(ir_rvalue *condition) in ir_if() 1391 ir_rvalue *condition; 1422 ir_assignment(ir_rvalue *lhs, ir_rvalue *rhs, ir_rvalue *condition = NULL); 1431 ir_assignment(ir_dereference *lhs, ir_rvalue *rhs, ir_rvalue *condition, 1463 void set_lhs(ir_rvalue *lhs); [all …]
|
D | ast_function.cpp | 32 static ir_rvalue * 33 convert_component(ir_rvalue *src, const glsl_type *desired_type); 50 ir_rvalue *result = ast->hir(instructions, state); in process_parameters() 197 const ir_rvalue *const actual = (ir_rvalue *) actual_ir_node; in verify_parameter_modes() 217 const ir_rvalue *val = actual; in verify_parameter_modes() 334 const ir_rvalue *const actual = in verify_parameter_modes() 335 (ir_rvalue *) actual_ir_parameters.get_head_raw(); in verify_parameter_modes() 352 fix_parameter(void *mem_ctx, ir_rvalue *actual, const glsl_type *formal_type, in fix_parameter() 420 ir_rvalue *rhs = new(mem_ctx) ir_dereference_variable(tmp); in fix_parameter() 424 ir_rvalue *lhs = actual; in fix_parameter() [all …]
|
D | lower_vec_index_to_cond_assign.cpp | 61 ir_rvalue *convert_vec_index_to_cond_assign(void *mem_ctx, 62 ir_rvalue *orig_vector, 63 ir_rvalue *orig_index, 66 ir_rvalue *convert_vector_extract_to_cond_assign(ir_rvalue *ir); 80 ir_rvalue * 82 ir_rvalue *orig_vector, in convert_vec_index_to_cond_assign() 83 ir_rvalue *orig_index, in convert_vec_index_to_cond_assign() 126 ir_rvalue * 127 ir_vec_index_to_cond_assign_visitor::convert_vector_extract_to_cond_assign(ir_rvalue *ir) in convert_vector_extract_to_cond_assign() 149 ir_rvalue *vec_input = interpolant->operands[0]; in convert_vector_extract_to_cond_assign() [all …]
|
D | lower_blend_equation_advanced.cpp | 38 static ir_rvalue * 45 static ir_rvalue * 52 static ir_rvalue * 60 ir_rvalue *rule_1 = mul(imm3(2), mul(src, dst)); in blend_overlay() 61 ir_rvalue *rule_2 = in blend_overlay() 66 static ir_rvalue * 73 static ir_rvalue * 80 static ir_rvalue * 95 static ir_rvalue * 110 static ir_rvalue * [all …]
|
D | ast.h | 62 virtual ir_rvalue *hir(exec_list *instructions, 235 virtual ir_rvalue *hir(exec_list *instructions, 243 ir_rvalue *do_hir(exec_list *instructions, 322 virtual ir_rvalue *hir(exec_list *instructions, 335 ir_rvalue * 424 virtual ir_rvalue *hir(exec_list *instructions, 437 virtual ir_rvalue *hir(exec_list *instructions, 840 virtual ir_rvalue *hir(exec_list *instructions, 884 ir_rvalue *hir(exec_list *, struct _mesa_glsl_parse_state *); 920 virtual ir_rvalue *hir(exec_list *instructions, [all …]
|
D | lower_distance.cpp | 87 void create_indices(ir_rvalue*, ir_rvalue *&, ir_rvalue *&); 88 bool is_distance_vec8(ir_rvalue *ir); 89 ir_rvalue *lower_distance_vec8(ir_rvalue *ir); 94 virtual void handle_rvalue(ir_rvalue **rvalue); 224 lower_distance_visitor::create_indices(ir_rvalue *old_index, in create_indices() 225 ir_rvalue *&array_index, in create_indices() 226 ir_rvalue *&swizzle_index) in create_indices() 290 lower_distance_visitor::is_distance_vec8(ir_rvalue *ir) in is_distance_vec8() 329 ir_rvalue * 330 lower_distance_visitor::lower_distance_vec8(ir_rvalue *ir) in lower_distance_vec8() [all …]
|
D | lower_ubo_reference.cpp | 56 void handle_rvalue(ir_rvalue **rvalue); 61 ir_rvalue *deref, 62 ir_rvalue **offset, 69 ir_rvalue *offset); 71 ir_rvalue *offset); 78 ir_call *ssbo_store(void *mem_ctx, ir_rvalue *deref, ir_rvalue *offset, 90 const glsl_type *type, ir_rvalue *offset, 98 ir_expression *process_ssbo_unsized_array_length(ir_rvalue **, 115 ir_rvalue *uniform_block; 127 interface_field_name(void *mem_ctx, char *base_name, ir_rvalue *d, in interface_field_name() [all …]
|
D | ir.cpp | 30 ir_rvalue::ir_rvalue(enum ir_node_type t) in ir_rvalue() function in ir_rvalue 36 bool ir_rvalue::is_zero() const in is_zero() 41 bool ir_rvalue::is_one() const in is_one() 46 bool ir_rvalue::is_negative_one() const in is_negative_one() 71 ir_assignment::set_lhs(ir_rvalue *lhs) in set_lhs() 151 ir_assignment::ir_assignment(ir_dereference *lhs, ir_rvalue *rhs, in ir_assignment() 152 ir_rvalue *condition, unsigned write_mask) in ir_assignment() 171 ir_assignment::ir_assignment(ir_rvalue *lhs, ir_rvalue *rhs, in ir_assignment() 172 ir_rvalue *condition) in ir_assignment() 196 ir_rvalue *op0, ir_rvalue *op1, in ir_expression() [all …]
|
D | lower_shared_reference.cpp | 73 const glsl_type *type, ir_rvalue *offset, 76 void handle_rvalue(ir_rvalue **rvalue); 87 ir_rvalue *offset); 88 ir_call *shared_store(void *mem_ctx, ir_rvalue *deref, ir_rvalue *offset, 120 lower_shared_reference_visitor::handle_rvalue(ir_rvalue **rvalue) in handle_rvalue() 137 ir_rvalue *offset = NULL; in handle_rvalue() 179 ir_rvalue *rvalue = ir->lhs->as_rvalue(); in handle_assignment() 205 ir_rvalue *offset = NULL; in handle_assignment() 242 ir_rvalue *offset, in insert_buffer_access() 252 ir_rvalue *value = load->return_deref->as_rvalue()->clone(mem_ctx, NULL); in insert_buffer_access() [all …]
|
D | lower_tess_level.cpp | 65 bool is_tess_level_array(ir_rvalue *ir); 66 ir_rvalue *lower_tess_level_array(ir_rvalue *ir); 71 virtual void handle_rvalue(ir_rvalue **rvalue); 164 lower_tess_level_visitor::is_tess_level_array(ir_rvalue *ir) in is_tess_level_array() 192 ir_rvalue * 193 lower_tess_level_visitor::lower_tess_level_array(ir_rvalue *ir) in lower_tess_level_array() 220 lower_tess_level_visitor::handle_rvalue(ir_rvalue **rv) in handle_rvalue() 233 ir_rvalue *lowered_vec4 = in handle_rvalue() 321 this->handle_rvalue((ir_rvalue **) &new_rhs); in visit_leave() 333 this->handle_rvalue((ir_rvalue **) &assign->lhs); in visit_leave() [all …]
|
D | opt_function_inlining.cpp | 91 ir_rvalue *lhs = orig_deref->clone(ctx, NULL); in replace_return_with_assignment() 155 ir_rvalue *param = (ir_rvalue *) actual_node; in generate_inline() 242 ir_rvalue *const param = (ir_rvalue *) actual_node; in generate_inline() 262 ir_rvalue *const param = (ir_rvalue *) actual_node; in generate_inline() 356 void replace_rvalue(ir_rvalue **rvalue); 372 ir_variable_replacement_visitor::replace_rvalue(ir_rvalue **rvalue) in replace_rvalue() 411 foreach_in_list_safe(ir_rvalue, param, &ir->actual_parameters) { in visit_leave() 412 ir_rvalue *new_param = param; in visit_leave()
|
D | opt_constant_folding.cpp | 57 virtual void handle_rvalue(ir_rvalue **rvalue); 65 ir_constant_fold(ir_rvalue **rvalue) in ir_constant_fold() 113 ir_constant_folding_visitor::handle_rvalue(ir_rvalue **rvalue) in handle_rvalue() 178 ir_rvalue *param_rval = (ir_rvalue *) actual_node; in visit_enter() 183 ir_rvalue *new_param = param_rval; in visit_enter()
|
D | lower_buffer_access.h | 46 const glsl_type *type, ir_rvalue *offset, 55 bool is_dereferenced_thing_row_major(const ir_rvalue *deref); 57 void setup_buffer_access(void *mem_ctx, ir_rvalue *deref, 58 ir_rvalue **offset, unsigned *const_offset,
|
D | lower_vec_index_to_swizzle.cpp | 47 ir_rvalue *convert_vector_extract_to_swizzle(ir_rvalue *val); 49 virtual void handle_rvalue(ir_rvalue **); 57 ir_vec_index_to_swizzle_visitor::handle_rvalue(ir_rvalue **rv) 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 *); 49 static ir_rvalue * 89 calculate_iterations(ir_rvalue *from, ir_rvalue *to, ir_rvalue *increment, in calculate_iterations() 113 ir_rvalue *cast = in calculate_iterations() 517 ir_rvalue *const rhs = lv->first_assignment->rhs; in visit_leave() 559 ir_rvalue *const inc = in visit_leave() 592 ir_rvalue *counter = cond->operands[0]->as_dereference_variable(); in visit_leave() 608 ir_rvalue *init = find_initial_value(ir, var); in visit_leave() 717 all_expression_operands_are_loop_constant(ir_rvalue *ir, hash_table *variables) in all_expression_operands_are_loop_constant() [all …]
|
D | lower_int64.cpp | 54 void expand_source(ir_factory &, ir_rvalue *val, ir_variable **expanded_src); 60 ir_rvalue *lower_op_to_function_call(ir_instruction *base_ir, 94 void handle_rvalue(ir_rvalue **rvalue); 123 ir_rvalue *handle_op(ir_expression *ir, const char *function_name, 200 ir_rvalue *val, in expand_source() 254 ir_rvalue * 296 ir_rvalue *const rv = compact_destination(body, ir->type, dst); in lower_op_to_function_call() 315 ir_rvalue * 347 lower_64bit_visitor::handle_rvalue(ir_rvalue **rvalue) in handle_rvalue()
|
D | hir_field_selection.cpp | 29 ir_rvalue * 35 ir_rvalue *result = NULL; in _mesa_ast_field_selection_to_hir() 36 ir_rvalue *op; in _mesa_ast_field_selection_to_hir() 79 return result ? result : ir_rvalue::error_value(ctx); in _mesa_ast_field_selection_to_hir()
|
D | opt_rebalance_tree.cpp | 74 ir_rvalue *vine_tail = root; in tree_to_vine() 75 ir_rvalue *remainder = root->operands[1]; in tree_to_vine() 136 void handle_rvalue(ir_rvalue **rvalue); 259 static ir_rvalue * 300 ir_rebalance_visitor::handle_rvalue(ir_rvalue **rvalue) in handle_rvalue() 309 ir_rvalue *new_rvalue = handle_expression(expr); in handle_rvalue()
|
D | opt_constant_propagation.cpp | 122 void constant_folding(ir_rvalue **rvalue); 123 void constant_propagation(ir_rvalue **rvalue); 126 void handle_rvalue(ir_rvalue **rvalue); 147 ir_constant_propagation_visitor::constant_folding(ir_rvalue **rvalue) in constant_folding() 167 ir_constant_propagation_visitor::constant_propagation(ir_rvalue **rvalue) { in constant_propagation() 258 ir_constant_propagation_visitor::handle_rvalue(ir_rvalue **rvalue) in handle_rvalue() 337 ir_rvalue *param = (ir_rvalue *) actual_node; in visit_enter() 340 ir_rvalue *new_param = param; in visit_enter()
|
D | lower_named_interface_blocks.cpp | 81 static ir_rvalue * 84 ir_rvalue *deref_var) in process_array_ir() 119 virtual void handle_rvalue(ir_rvalue **rvalue); 228 ir_rvalue *lhs_rec_tmp = lhs_rec; in visit_leave() 250 const ir_rvalue *val = ir->operands[0]; in visit_leave() 260 flatten_named_interface_blocks_declarations::handle_rvalue(ir_rvalue **rvalue) in handle_rvalue() 304 (ir_rvalue *)deref_var); in handle_rvalue()
|
D | opt_algebraic.cpp | 63 ir_rvalue *handle_expression(ir_expression *ir); 64 void handle_rvalue(ir_rvalue **rvalue); 73 ir_rvalue *swizzle_if_required(ir_expression *expr, 74 ir_rvalue *operand); 233 ir_rvalue *temp = ir2->operands[op2]; in reassociate_operands() 302 ir_rvalue * 304 ir_rvalue *operand) in swizzle_if_required() 313 ir_rvalue * 560 ir_rvalue *x_operand = ir->operands[1 - mul_pos]; in handle_expression() 565 ir_rvalue *y_operand = inner_add->operands[1 - neg_pos]; in handle_expression() [all …]
|
D | lower_buffer_access.cpp | 138 ir_rvalue *offset = in emit_access() 156 ir_rvalue *chan_offset = in emit_access() 182 lower_buffer_access::is_dereferenced_thing_row_major(const ir_rvalue *deref) in is_dereferenced_thing_row_major() 185 const ir_rvalue *ir = deref; in is_dereferenced_thing_row_major() 274 ir_rvalue *deref, in setup_buffer_access() 275 ir_rvalue **offset, in setup_buffer_access() 352 ir_rvalue *array_index = deref_array->array_index; in setup_buffer_access()
|
D | ir_expression_flattening.cpp | 50 void handle_rvalue(ir_rvalue **rvalue); 66 ir_expression_flattening_visitor::handle_rvalue(ir_rvalue **rvalue) in handle_rvalue() 70 ir_rvalue *ir = *rvalue; in handle_rvalue()
|
/external/mesa3d/src/mesa/main/ |
D | ff_fragment_shader.cpp | 350 ir_rvalue *src_previous; /**< Reg containing color from previous 355 static ir_rvalue * 359 ir_rvalue *val; in get_current_attrib() 365 ir_rvalue *index = new(p->mem_ctx) ir_constant(attrib); in get_current_attrib() 369 static ir_rvalue * 381 static ir_rvalue * 435 static ir_rvalue * 441 ir_rvalue *src; in emit_combine_source() 453 ir_rvalue *const scalar = src->type->is_scalar() ? src : swizzle_w(src); in emit_combine_source() 507 static ir_rvalue * [all …]
|