/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 | 221 class ir_rvalue : public ir_instruction { 225 virtual ir_rvalue *clone(void *mem_ctx, struct hash_table *) const; 237 ir_rvalue *as_rvalue_to_saturate(); 316 static ir_rvalue *error_value(void *mem_ctx); 319 ir_rvalue(enum ir_node_type t); 1412 ir_if(ir_rvalue *condition) in ir_if() 1426 ir_rvalue *condition; 1457 ir_assignment(ir_rvalue *lhs, ir_rvalue *rhs, ir_rvalue *condition = NULL); 1466 ir_assignment(ir_dereference *lhs, ir_rvalue *rhs, ir_rvalue *condition, 1498 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() 54 actual_parameters->push_tail(ir_rvalue::error_value(mem_ctx)); in process_parameters() 235 const ir_rvalue *const actual = (ir_rvalue *) actual_ir_node; in verify_parameter_modes() 252 const ir_rvalue *val = actual; in verify_parameter_modes() 369 const ir_rvalue *const actual = in verify_parameter_modes() 370 (ir_rvalue *) actual_ir_parameters.get_head_raw(); in verify_parameter_modes() 382 const ir_rvalue *const actual = in verify_parameter_modes() 383 (ir_rvalue *) actual_ir_parameters.get_head_raw(); in verify_parameter_modes() [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 | 39 static ir_rvalue * 46 static ir_rvalue * 53 static ir_rvalue * 61 ir_rvalue *rule_1 = mul(imm3(2), mul(src, dst)); in blend_overlay() 62 ir_rvalue *rule_2 = in blend_overlay() 67 static ir_rvalue * 74 static ir_rvalue * 81 static ir_rvalue * 96 static ir_rvalue * 111 static ir_rvalue * [all …]
|
D | lower_distance.cpp | 88 void create_indices(ir_rvalue*, ir_rvalue *&, ir_rvalue *&); 89 bool is_distance_vec8(ir_rvalue *ir); 90 ir_rvalue *lower_distance_vec8(ir_rvalue *ir); 95 virtual void handle_rvalue(ir_rvalue **rvalue); 225 lower_distance_visitor::create_indices(ir_rvalue *old_index, in create_indices() 226 ir_rvalue *&array_index, in create_indices() 227 ir_rvalue *&swizzle_index) in create_indices() 291 lower_distance_visitor::is_distance_vec8(ir_rvalue *ir) in is_distance_vec8() 330 ir_rvalue * 331 lower_distance_visitor::lower_distance_vec8(ir_rvalue *ir) in lower_distance_vec8() [all …]
|
D | ast.h | 63 virtual ir_rvalue *hir(exec_list *instructions, 240 virtual ir_rvalue *hir(exec_list *instructions, 248 ir_rvalue *do_hir(exec_list *instructions, 327 virtual ir_rvalue *hir(exec_list *instructions, 340 ir_rvalue * 429 virtual ir_rvalue *hir(exec_list *instructions, 442 virtual ir_rvalue *hir(exec_list *instructions, 884 virtual ir_rvalue *hir(exec_list *instructions, 928 ir_rvalue *hir(exec_list *, struct _mesa_glsl_parse_state *); 964 virtual ir_rvalue *hir(exec_list *instructions, [all …]
|
D | lower_ubo_reference.cpp | 59 void handle_rvalue(ir_rvalue **rvalue); 64 ir_rvalue *deref, 65 ir_rvalue **offset, 72 ir_rvalue *offset); 74 ir_rvalue *offset); 81 ir_call *ssbo_store(void *mem_ctx, ir_rvalue *deref, ir_rvalue *offset, 93 const glsl_type *type, ir_rvalue *offset, 101 ir_expression *process_ssbo_unsized_array_length(ir_rvalue **, 118 ir_rvalue *uniform_block; 130 interface_field_name(void *mem_ctx, char *base_name, ir_rvalue *d, in interface_field_name() [all …]
|
D | lower_shared_reference.cpp | 76 const glsl_type *type, ir_rvalue *offset, 79 void handle_rvalue(ir_rvalue **rvalue); 90 ir_rvalue *offset); 91 ir_call *shared_store(void *mem_ctx, ir_rvalue *deref, ir_rvalue *offset, 123 lower_shared_reference_visitor::handle_rvalue(ir_rvalue **rvalue) in handle_rvalue() 140 ir_rvalue *offset = NULL; in handle_rvalue() 182 ir_rvalue *rvalue = ir->lhs->as_rvalue(); in handle_assignment() 208 ir_rvalue *offset = NULL; in handle_assignment() 245 ir_rvalue *offset, in insert_buffer_access() 255 ir_rvalue *value = load->return_deref->as_rvalue()->clone(mem_ctx, NULL); in insert_buffer_access() [all …]
|
D | lower_tess_level.cpp | 66 bool is_tess_level_array(ir_rvalue *ir); 67 ir_rvalue *lower_tess_level_array(ir_rvalue *ir); 72 virtual void handle_rvalue(ir_rvalue **rvalue); 165 lower_tess_level_visitor::is_tess_level_array(ir_rvalue *ir) in is_tess_level_array() 193 ir_rvalue * 194 lower_tess_level_visitor::lower_tess_level_array(ir_rvalue *ir) in lower_tess_level_array() 221 lower_tess_level_visitor::handle_rvalue(ir_rvalue **rv) in handle_rvalue() 234 ir_rvalue *lowered_vec4 = in handle_rvalue() 322 this->handle_rvalue((ir_rvalue **) &new_rhs); in visit_leave() 334 this->handle_rvalue((ir_rvalue **) &assign->lhs); in visit_leave() [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 | opt_function_inlining.cpp | 91 ir_rvalue *lhs = orig_deref->clone(ctx, NULL); in replace_return_with_assignment() 135 should_replace_variable(ir_variable *sig_param, ir_rvalue *param) { in should_replace_variable() 167 ir_rvalue *param = (ir_rvalue *) actual_node; in generate_inline() 250 ir_rvalue *const param = (ir_rvalue *) actual_node; in generate_inline() 269 ir_rvalue *const param = (ir_rvalue *) actual_node; in generate_inline() 366 void replace_rvalue(ir_rvalue **rvalue); 382 ir_variable_replacement_visitor::replace_rvalue(ir_rvalue **rvalue) in replace_rvalue() 447 foreach_in_list_safe(ir_rvalue, param, &ir->actual_parameters) { in visit_leave() 448 ir_rvalue *new_param = param; in visit_leave()
|
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 | 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 | 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 | 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 | 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() 127 ir_rvalue *first_value = from; in calculate_iterations() 557 ir_rvalue *const rhs = lv->first_assignment->rhs; in visit_leave() 599 ir_rvalue *const inc = in visit_leave() 632 ir_rvalue *counter = cond->operands[0]->as_dereference_variable(); in visit_leave() 648 ir_rvalue *init = find_initial_value(ir, var); in visit_leave() [all …]
|
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 | 104 void constant_folding(ir_rvalue **rvalue); 105 void constant_propagation(ir_rvalue **rvalue); 109 void handle_rvalue(ir_rvalue **rvalue); 129 ir_constant_propagation_visitor::constant_folding(ir_rvalue **rvalue) in constant_folding() 149 ir_constant_propagation_visitor::constant_propagation(ir_rvalue **rvalue) { in constant_propagation() 249 ir_constant_propagation_visitor::handle_rvalue(ir_rvalue **rvalue) in handle_rvalue() 327 ir_rvalue *param = (ir_rvalue *) actual_node; in visit_enter() 330 ir_rvalue *new_param = param; in visit_enter()
|
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()
|
D | lower_named_interface_blocks.cpp | 82 static ir_rvalue * 85 ir_rvalue *deref_var) in process_array_ir() 120 virtual void handle_rvalue(ir_rvalue **rvalue); 229 ir_rvalue *lhs_rec_tmp = lhs_rec; in visit_leave() 251 const ir_rvalue *val = ir->operands[0]; in visit_leave() 261 flatten_named_interface_blocks_declarations::handle_rvalue(ir_rvalue **rvalue) in handle_rvalue() 305 (ir_rvalue *)deref_var); in handle_rvalue()
|
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 | ast_array_index.cpp | 49 update_max_array_access(ir_rvalue *ir, int idx, YYLTYPE *loc, in update_max_array_access() 117 ir_rvalue *array) in get_implicit_array_size() 142 ir_rvalue * 145 ir_rvalue *array, ir_rvalue *idx, in _mesa_ast_array_index_to_hir() 359 ir_rvalue *result = new(mem_ctx) ir_dereference_array(array, idx); in _mesa_ast_array_index_to_hir()
|
/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 …]
|