Home
last modified time | relevance | path

Searched refs:ir_rvalue (Results 1 – 25 of 82) sorted by relevance

1234

/external/mesa3d/src/compiler/glsl/
Dlower_packing_builtins.cpp56 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 …]
Dast_function.cpp31 static ir_rvalue *
32 convert_component(ir_rvalue *src, const glsl_type *desired_type);
48 ir_rvalue *result = ast->hir(instructions, state); in process_parameters()
193 const ir_rvalue *const actual = (ir_rvalue *) actual_ir_node; in verify_parameter_modes()
213 const ir_rvalue *val = actual; in verify_parameter_modes()
319 const ir_rvalue *const actual = in verify_parameter_modes()
320 (ir_rvalue *) actual_ir_parameters.get_head_raw(); in verify_parameter_modes()
337 fix_parameter(void *mem_ctx, ir_rvalue *actual, const glsl_type *formal_type, in fix_parameter()
405 ir_rvalue *rhs = new(mem_ctx) ir_dereference_variable(tmp); in fix_parameter()
409 ir_rvalue *lhs = actual; in fix_parameter()
[all …]
Dir.h220 class ir_rvalue : public ir_instruction {
224 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);
1350 ir_if(ir_rvalue *condition) in ir_if()
1364 ir_rvalue *condition;
1395 ir_assignment(ir_rvalue *lhs, ir_rvalue *rhs, ir_rvalue *condition = NULL);
1404 ir_assignment(ir_dereference *lhs, ir_rvalue *rhs, ir_rvalue *condition,
1435 void set_lhs(ir_rvalue *lhs);
[all …]
Dlower_vec_index_to_cond_assign.cpp57 ir_rvalue *convert_vec_index_to_cond_assign(void *mem_ctx,
58 ir_rvalue *orig_vector,
59 ir_rvalue *orig_index,
62 ir_rvalue *convert_vector_extract_to_cond_assign(ir_rvalue *ir);
76 ir_rvalue *
78 ir_rvalue *orig_vector, in convert_vec_index_to_cond_assign()
79 ir_rvalue *orig_index, in convert_vec_index_to_cond_assign()
117 ir_rvalue *const cond_deref = in convert_vec_index_to_cond_assign()
124 ir_rvalue *condition_swizzle = in convert_vec_index_to_cond_assign()
131 ir_rvalue *swizzle = in convert_vec_index_to_cond_assign()
[all …]
Dlower_blend_equation_advanced.cpp37 static ir_rvalue *
44 static ir_rvalue *
51 static ir_rvalue *
59 ir_rvalue *rule_1 = mul(imm3(2), mul(src, dst)); in blend_overlay()
60 ir_rvalue *rule_2 = in blend_overlay()
65 static ir_rvalue *
72 static ir_rvalue *
79 static ir_rvalue *
94 static ir_rvalue *
109 static ir_rvalue *
[all …]
Dast.h62 virtual ir_rvalue *hir(exec_list *instructions,
233 virtual ir_rvalue *hir(exec_list *instructions,
241 ir_rvalue *do_hir(exec_list *instructions,
318 virtual ir_rvalue *hir(exec_list *instructions,
331 ir_rvalue *
420 virtual ir_rvalue *hir(exec_list *instructions,
433 virtual ir_rvalue *hir(exec_list *instructions,
816 virtual ir_rvalue *hir(exec_list *instructions,
852 ir_rvalue *hir(exec_list *, struct _mesa_glsl_parse_state *);
887 virtual ir_rvalue *hir(exec_list *instructions,
[all …]
Dlower_distance.cpp87 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()
289 lower_distance_visitor::is_distance_vec8(ir_rvalue *ir) in is_distance_vec8()
328 ir_rvalue *
329 lower_distance_visitor::lower_distance_vec8(ir_rvalue *ir) in lower_distance_vec8()
[all …]
Dir.cpp28 ir_rvalue::ir_rvalue(enum ir_node_type t) 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()
69 ir_assignment::set_lhs(ir_rvalue *lhs) in set_lhs()
149 ir_assignment::ir_assignment(ir_dereference *lhs, ir_rvalue *rhs, in ir_assignment()
150 ir_rvalue *condition, unsigned write_mask) in ir_assignment()
169 ir_assignment::ir_assignment(ir_rvalue *lhs, ir_rvalue *rhs, in ir_assignment()
170 ir_rvalue *condition) in ir_assignment()
194 ir_rvalue *op0, ir_rvalue *op1, in ir_expression()
[all …]
Dlower_ubo_reference.cpp54 void handle_rvalue(ir_rvalue **rvalue);
59 ir_rvalue *deref,
60 ir_rvalue **offset,
67 ir_rvalue *offset);
69 ir_rvalue *offset);
76 ir_call *ssbo_store(void *mem_ctx, ir_rvalue *deref, ir_rvalue *offset,
88 const glsl_type *type, ir_rvalue *offset,
96 ir_expression *process_ssbo_unsized_array_length(ir_rvalue **,
112 ir_rvalue *uniform_block;
124 interface_field_name(void *mem_ctx, char *base_name, ir_rvalue *d, in interface_field_name()
[all …]
Dlower_shared_reference.cpp72 const glsl_type *type, ir_rvalue *offset,
75 void handle_rvalue(ir_rvalue **rvalue);
86 ir_rvalue *offset);
87 ir_call *shared_store(void *mem_ctx, ir_rvalue *deref, ir_rvalue *offset,
119 lower_shared_reference_visitor::handle_rvalue(ir_rvalue **rvalue) in handle_rvalue()
136 ir_rvalue *offset = NULL; in handle_rvalue()
178 ir_rvalue *rvalue = ir->lhs->as_rvalue(); in handle_assignment()
204 ir_rvalue *offset = NULL; in handle_assignment()
241 ir_rvalue *offset, in insert_buffer_access()
251 ir_rvalue *value = load->return_deref->as_rvalue()->clone(mem_ctx, NULL); in insert_buffer_access()
[all …]
Dlower_tess_level.cpp65 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()
320 this->handle_rvalue((ir_rvalue **) &new_rhs); in visit_leave()
332 this->handle_rvalue((ir_rvalue **) &assign->lhs); in visit_leave()
[all …]
Dopt_function_inlining.cpp91 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()
357 void replace_rvalue(ir_rvalue **rvalue);
373 ir_variable_replacement_visitor::replace_rvalue(ir_rvalue **rvalue) in replace_rvalue()
412 foreach_in_list_safe(ir_rvalue, param, &ir->actual_parameters) { in visit_leave()
413 ir_rvalue *new_param = param; in visit_leave()
Dlower_variable_index_to_cond_assign.cpp72 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()
134 deref_replacer(const ir_variable *variable_to_replace, ir_rvalue *value) in deref_replacer()
142 virtual void handle_rvalue(ir_rvalue **rvalue) in handle_rvalue()
153 ir_rvalue *value;
204 void generate(unsigned i, ir_rvalue* condition, exec_list *list) const in generate()
223 ir_rvalue *variable = new(mem_ctx) ir_dereference_variable(this->var); in generate()
[all …]
Dopt_constant_folding.cpp57 virtual void handle_rvalue(ir_rvalue **rvalue);
65 ir_constant_fold(ir_rvalue **rvalue) in ir_constant_fold()
112 ir_constant_folding_visitor::handle_rvalue(ir_rvalue **rvalue) in handle_rvalue()
177 ir_rvalue *param_rval = (ir_rvalue *) actual_node; in visit_enter()
182 ir_rvalue *new_param = param_rval; in visit_enter()
Dlower_buffer_access.h47 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,
Dlower_vec_index_to_swizzle.cpp47 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()
Dloop_analysis.h59 ir_rvalue *
63 calculate_iterations(ir_rvalue *from, ir_rvalue *to, ir_rvalue *increment,
178 ir_rvalue *increment;
Dhir_field_selection.cpp29 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()
80 return result ? result : ir_rvalue::error_value(ctx); in _mesa_ast_field_selection_to_hir()
Dopt_constant_propagation.cpp122 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()
166 ir_constant_propagation_visitor::constant_propagation(ir_rvalue **rvalue) { in constant_propagation()
251 ir_constant_propagation_visitor::handle_rvalue(ir_rvalue **rvalue) in handle_rvalue()
330 ir_rvalue *param = (ir_rvalue *) actual_node; in visit_enter()
333 ir_rvalue *new_param = param; in visit_enter()
Dopt_rebalance_tree.cpp74 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()
Dlower_packed_varyings.cpp180 void bitwise_assign_pack(ir_rvalue *lhs, ir_rvalue *rhs);
181 void bitwise_assign_unpack(ir_rvalue *lhs, ir_rvalue *rhs);
182 unsigned lower_rvalue(ir_rvalue *rvalue, unsigned fine_location,
185 unsigned lower_arraylike(ir_rvalue *rvalue, unsigned array_size,
320 lower_packed_varyings_visitor::bitwise_assign_pack(ir_rvalue *lhs, in bitwise_assign_pack()
321 ir_rvalue *rhs) in bitwise_assign_pack()
370 lower_packed_varyings_visitor::bitwise_assign_unpack(ir_rvalue *lhs, in bitwise_assign_unpack()
371 ir_rvalue *rhs) in bitwise_assign_unpack()
434 lower_packed_varyings_visitor::lower_rvalue(ir_rvalue *rvalue, in lower_rvalue()
569 lower_packed_varyings_visitor::lower_arraylike(ir_rvalue *rvalue, in lower_arraylike()
Dloop_controls.cpp44 ir_rvalue *
85 calculate_iterations(ir_rvalue *from, ir_rvalue *to, ir_rvalue *increment, in calculate_iterations()
107 ir_rvalue *cast = in calculate_iterations()
Dloop_analysis.cpp30 static bool all_expression_operands_are_loop_constant(ir_rvalue *,
33 static ir_rvalue *get_basic_induction_increment(ir_assignment *, hash_table *);
340 ir_rvalue *const rhs = lv->first_assignment->rhs; in visit_leave()
382 ir_rvalue *const inc = in visit_leave()
417 ir_rvalue *counter = cond->operands[0]->as_dereference_variable(); in visit_leave()
439 ir_rvalue *init = find_initial_value(ir, var); in visit_leave()
543 all_expression_operands_are_loop_constant(ir_rvalue *ir, hash_table *variables) in all_expression_operands_are_loop_constant()
553 ir_rvalue *
577 ir_rvalue *inc = (op0 == var) ? rhs->operands[1] : rhs->operands[0]; in get_basic_induction_increment()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_fs_channel_expressions.cpp58 ir_rvalue *get_element(ir_variable *var, unsigned int element);
59 void assign(ir_assignment *ir, int elem, ir_rvalue *val);
118 ir_rvalue *
132 ir_channel_expressions_visitor::assign(ir_assignment *ir, int elem, ir_rvalue *val) in assign()
268 ir_rvalue *op0 = get_element(op_var[0], i); in visit_leave()
304 ir_rvalue *op0 = get_element(op_var[0], i); in visit_leave()
305 ir_rvalue *op1 = get_element(op_var[1], i); in visit_leave()
317 ir_rvalue *op0 = get_element(op_var[0], i); in visit_leave()
318 ir_rvalue *op1 = get_element(op_var[1], i); in visit_leave()
342 ir_rvalue *op0 = get_element(op_var[0], i); in visit_leave()
[all …]
/external/mesa3d/src/mesa/main/
Dff_fragment_shader.cpp509 ir_rvalue *src_previous; /**< Reg containing color from previous
514 static ir_rvalue *
518 ir_rvalue *val; in get_current_attrib()
524 ir_rvalue *index = new(p->mem_ctx) ir_constant(attrib); in get_current_attrib()
528 static ir_rvalue *
540 static ir_rvalue *
591 static ir_rvalue *
597 ir_rvalue *src; in emit_combine_source()
609 ir_rvalue *const scalar = src->type->is_scalar() ? src : swizzle_w(src); in emit_combine_source()
666 static ir_rvalue *
[all …]

1234