Home
last modified time | relevance | path

Searched refs:ir_variable (Results 1 – 25 of 90) sorted by relevance

1234

/third_party/mesa3d/src/compiler/glsl/
Dlower_blend_equation_advanced.cpp40 blend_multiply(ir_variable *src, ir_variable *dst) in blend_multiply()
47 blend_screen(ir_variable *src, ir_variable *dst) in blend_screen()
54 blend_overlay(ir_variable *src, ir_variable *dst) in blend_overlay()
68 blend_darken(ir_variable *src, ir_variable *dst) in blend_darken()
75 blend_lighten(ir_variable *src, ir_variable *dst) in blend_lighten()
82 blend_colordodge(ir_variable *src, ir_variable *dst) in blend_colordodge()
97 blend_colorburn(ir_variable *src, ir_variable *dst) in blend_colorburn()
112 blend_hardlight(ir_variable *src, ir_variable *dst) in blend_hardlight()
126 blend_softlight(ir_variable *src, ir_variable *dst) in blend_softlight()
156 blend_difference(ir_variable *src, ir_variable *dst) in blend_difference()
[all …]
Dlower_instructions.cpp219 ir_variable *x = new(ir) ir_variable(ir->type, "x", ir_var_temporary); in ldexp_to_arith()
220 ir_variable *exp = new(ir) ir_variable(ivec, "exp", ir_var_temporary); in ldexp_to_arith()
221 ir_variable *result = new(ir) ir_variable(uvec, "result", ir_var_temporary); in ldexp_to_arith()
223 ir_variable *extracted_biased_exp = in ldexp_to_arith()
224 new(ir) ir_variable(ivec, "extracted_biased_exp", ir_var_temporary); in ldexp_to_arith()
225 ir_variable *resulting_biased_exp = in ldexp_to_arith()
226 new(ir) ir_variable(ivec, "resulting_biased_exp", ir_var_temporary); in ldexp_to_arith()
228 ir_variable *sign_mantissa = in ldexp_to_arith()
229 new(ir) ir_variable(uvec, "sign_mantissa", ir_var_temporary); in ldexp_to_arith()
231 ir_variable *flush_to_zero = in ldexp_to_arith()
[all …]
Dbuiltin_int64.h11ir_variable *const r000C = new(mem_ctx) ir_variable(glsl_type::uvec2_type, "n", ir_var_function_in… in udivmod64()
13ir_variable *const r000D = new(mem_ctx) ir_variable(glsl_type::uvec2_type, "d", ir_var_function_in… in udivmod64()
15 ir_variable *const r000E = new(mem_ctx) ir_variable(glsl_type::int_type, "i", ir_var_auto); in udivmod64()
17ir_variable *const r000F = new(mem_ctx) ir_variable(glsl_type::uint64_t_type, "n64", ir_var_auto); in udivmod64()
19ir_variable *const r0010 = new(mem_ctx) ir_variable(glsl_type::int_type, "log2_denom", ir_var_auto… in udivmod64()
21 ir_variable *const r0011 = new(mem_ctx) ir_variable(glsl_type::uvec2_type, "quot", ir_var_auto); in udivmod64()
38 ir_variable *const r0017 = new(mem_ctx) ir_variable(glsl_type::int_type, "i", ir_var_auto); in udivmod64()
40 ir_variable *const r0018 = body.make_temp(glsl_type::int_type, "findMSB_retval"); in udivmod64()
124 ir_variable *const r0026 = body.make_temp(glsl_type::uint64_t_type, "packUint2x32_retval"); in udivmod64()
202 ir_variable *const r0034 = body.make_temp(glsl_type::uvec4_type, "vec_ctor"); in udivmod64()
[all …]
Dopt_copy_propagation_elements.cpp59 ir_variable *rhs_full;
60 ir_variable *rhs_element[4];
95 void erase(ir_variable *var, unsigned write_mask) in erase()
106 ir_variable *to_remove = entry->rhs_element[i]; in erase()
115 ir_variable *dst_var = (ir_variable *)set_entry->key; in erase()
127 acp_entry *read(ir_variable *var) in read()
137 void write_elements(ir_variable *lhs, ir_variable *rhs, unsigned write_mask, int swizzle[4]) in write_elements()
145 ir_variable *to_remove = lhs_entry->rhs_element[i]; in write_elements()
156 void write_full(ir_variable *lhs, ir_variable *rhs) in write_full()
183 void remove_unused_var_from_dsts(acp_entry *lhs_entry, ir_variable *lhs, ir_variable *var) in remove_unused_var_from_dsts()
[all …]
Dlower_output_reads.cpp74 const ir_variable * var = static_cast<const ir_variable *>(key); in hash_table_var_hash()
97 ir_variable *temp = entry ? (ir_variable *) entry->data : NULL; in visit()
102 temp = new(var_ctx) ir_variable(ir->var->type, ir->var->name, in visit()
122 copy(void *ctx, ir_variable *output, ir_variable *temp) in copy()
136 ir->insert_before(copy(ir, (ir_variable *) key, (ir_variable *) data)); in emit_return_copy()
144 sig->body.push_tail(copy(sig, (ir_variable *) key, (ir_variable *) data)); in emit_main_copy()
Dlower_packing_builtins.cpp213 ir_variable *u = factory.make_temp(glsl_type::uvec2_type, in pack_uvec2_to_uint()
241 ir_variable *u = factory.make_temp(glsl_type::uvec4_type, in pack_uvec4_to_uint()
279 ir_variable *u = factory.make_temp(glsl_type::uint_type, in unpack_uint_to_uvec2()
284 ir_variable *u2 = factory.make_temp(glsl_type::uvec2_type, in unpack_uint_to_uvec2()
313 ir_variable *i = factory.make_temp(glsl_type::int_type, in unpack_uint_to_ivec2()
318 ir_variable *i2 = factory.make_temp(glsl_type::ivec2_type, in unpack_uint_to_ivec2()
342 ir_variable *u = factory.make_temp(glsl_type::uint_type, in unpack_uint_to_uvec4()
347 ir_variable *u4 = factory.make_temp(glsl_type::uvec4_type, in unpack_uint_to_uvec4()
394 ir_variable *i = factory.make_temp(glsl_type::int_type, in unpack_uint_to_ivec4()
399 ir_variable *i4 = factory.make_temp(glsl_type::ivec4_type, in unpack_uint_to_ivec4()
[all …]
Dlink_interface_blocks.cpp110 intrastage_match(ir_variable *a, in intrastage_match()
111 ir_variable *b, in intrastage_match()
178 interstage_match(struct gl_shader_program *prog, ir_variable *producer, in interstage_match()
179 ir_variable *consumer, bool extra_array_level) in interstage_match()
251 ir_variable *lookup(ir_variable *var) in lookup()
260 return entry ? (ir_variable *) entry->data : NULL; in lookup()
265 return entry ? (ir_variable *) entry->data : NULL; in lookup()
272 void store(ir_variable *var) in store()
322 ir_variable *var = node->as_variable(); in validate_intrastage_interface_blocks()
353 ir_variable *prev_def = definitions->lookup(var); in validate_intrastage_interface_blocks()
[all …]
Dlower_cs_derived.cpp70 ir_variable *add_system_value(
84 ir_variable *gl_WorkGroupID;
85 ir_variable *gl_LocalInvocationID;
87 ir_variable *gl_GlobalInvocationID;
88 ir_variable *gl_LocalInvocationIndex;
93 ir_variable *
97 ir_variable *var = new(shader) ir_variable(type, name, ir_var_system_value); in add_system_value()
114 ir_variable *WorkGroupSize; in find_sysvals()
164 gl_GlobalInvocationID = new(shader) ir_variable( in make_gl_GlobalInvocationID()
189 ir_variable(glsl_type::uint_type, "__LocalInvocationIndex", ir_var_temporary); in make_gl_LocalInvocationIndex()
Dopt_function_inlining.cpp39 ir_variable *orig,
117 ir_variable *index; in visit_enter()
120 index = new(ctx) ir_variable(deref->array_index->type, "saved_idx", ir_var_temporary); in visit_enter()
135 should_replace_variable(ir_variable *sig_param, ir_rvalue *param) { in should_replace_variable()
150 ir_variable **parameters; in generate_inline()
158 parameters = new ir_variable *[num_parameters]; in generate_inline()
166 ir_variable *sig_param = (ir_variable *) formal_node; in generate_inline()
251 ir_variable *sig_param = (ir_variable *) formal_node; in generate_inline()
270 const ir_variable *const sig_param = (ir_variable *) formal_node; in generate_inline()
347 ir_variable_replacement_visitor(ir_variable *orig, ir_dereference *repl) in ir_variable_replacement_visitor()
[all …]
Dopt_array_splitting.cpp50 variable_entry(ir_variable *var) in variable_entry()
63 ir_variable *var; /* The key: the variable's pointer. */
75 ir_variable **components;
106 virtual ir_visitor_status visit(ir_variable *);
113 variable_entry *get_variable_entry(ir_variable *var);
126 ir_array_reference_visitor::get_variable_entry(ir_variable *var) in get_variable_entry()
178 ir_array_reference_visitor::visit(ir_variable *ir) in visit()
281 ir_variable *var = node->as_variable(); in get_split_list()
325 variable_entry *get_splitting_entry(ir_variable *var);
331 ir_array_splitting_visitor::get_splitting_entry(ir_variable *var) in get_splitting_entry()
[all …]
Dopt_structure_splitting.cpp47 variable_entry(ir_variable *var) in variable_entry()
56 ir_variable *var; /* The key: the variable's pointer. */
67 ir_variable **components;
87 virtual ir_visitor_status visit(ir_variable *);
93 variable_entry *get_variable_entry(ir_variable *var);
102 ir_structure_reference_visitor::get_variable_entry(ir_variable *var) in get_variable_entry()
123 ir_structure_reference_visitor::visit(ir_variable *ir) in visit()
136 ir_variable *const var = ir->variable_referenced(); in visit()
198 variable_entry *get_splitting_entry(ir_variable *var);
204 ir_structure_splitting_visitor::get_splitting_entry(ir_variable *var) in get_splitting_entry()
[all …]
Dopt_constant_variable.cpp45 ir_variable *var;
56 virtual ir_visitor_status visit(ir_variable *);
66 get_assignment_entry(ir_variable *var, struct hash_table *ht) in get_assignment_entry()
83 ir_constant_variable_visitor::visit(ir_variable *ir) in visit()
119 ir_variable *var = ir->whole_variable_written(); in visit_enter()
151 ir_variable *param = (ir_variable *) formal_node; in visit_enter()
155 ir_variable *var = param_rval->variable_referenced(); in visit_enter()
175 ir_variable *var = ir->return_deref->variable_referenced(); in visit_enter()
Dlink_varyings.cpp47 get_varying_type(const ir_variable *var, gl_shader_stage stage) in get_varying_type()
71 const ir_variable *input, in cross_validate_types_and_qualifiers()
72 const ir_variable *output, in cross_validate_types_and_qualifiers()
277 const ir_variable *input, in cross_validate_front_and_back_color()
278 const ir_variable *front_color, in cross_validate_front_and_back_color()
279 const ir_variable *back_color, in cross_validate_front_and_back_color()
293 compute_variable_location_slot(ir_variable *var, gl_shader_stage stage) in compute_variable_location_slot()
319 ir_variable *var;
330 ir_variable *var, in check_location_aliasing()
491 ir_variable *var, in validate_explicit_variable_location()
[all …]
Dlower_distance.cpp87 virtual ir_visitor_status visit(ir_variable *);
113 ir_variable *old_distance_out_var;
114 ir_variable *old_distance_in_var;
119 ir_variable *new_distance_out_var;
120 ir_variable *new_distance_in_var;
138 lower_distance_visitor::visit(ir_variable *ir) in visit()
140 ir_variable **old_var; in visit()
141 ir_variable **new_var; in visit()
253 ir_variable *old_index_var = new(ctx) ir_variable( in create_indices()
338 ir_variable **new_var = NULL; in lower_distance_vec8()
[all …]
Dlower_vertex_id.cpp53 ir_variable *const var = ir->as_variable(); in lower_vertex_id_visitor()
68 ir_variable *VertexID;
69 ir_variable *gl_VertexID;
70 ir_variable *gl_BaseVertex;
89 VertexID = new(mem_ctx) ir_variable(int_t, "__VertexID", in visit()
93 gl_VertexID = new(mem_ctx) ir_variable(int_t, "gl_VertexIDMESA", in visit()
103 gl_BaseVertex = new(mem_ctx) ir_variable(int_t, "gl_BaseVertex", in visit()
Dlower_named_interface_blocks.cpp138 ir_variable *var = node->as_variable(); in run()
164 ir_variable *found_var = entry ? (ir_variable *) entry->data : NULL; in run()
166 ir_variable *new_var; in run()
171 new(mem_ctx) ir_variable(iface_t->fields.structure[i].type, in run()
178 new(mem_ctx) ir_variable(new_array_type, in run()
228 ir_variable *lhs_var = ir->lhs->variable_referenced(); in visit_leave()
240 ir_variable *lhs_var = lhs_rec_tmp->variable_referenced(); in visit_leave()
275 ir_variable *var = ir->variable_referenced(); in handle_rvalue()
301 ir_variable *found_var = (ir_variable *) entry->data; in handle_rvalue()
Dir_function.cpp64 const ir_variable *const param = (ir_variable *) node_a; in parameter_lists_match()
136 get_parameter_match_type(const ir_variable *param, in get_parameter_match_type()
238 (const ir_variable *)node_a, in is_best_inexact_overload()
241 (const ir_variable *)node_b, in is_best_inexact_overload()
382 ir_variable *a = (ir_variable *) node_a; in parameter_lists_match_exact()
383 ir_variable *b = (ir_variable *) node_b; in parameter_lists_match_exact()
Dlower_tess_level.cpp65 virtual ir_visitor_status visit(ir_variable *);
81 ir_variable *old_tess_level_outer_var;
82 ir_variable *old_tess_level_inner_var;
87 ir_variable *new_tess_level_outer_var;
88 ir_variable *new_tess_level_inner_var;
103 lower_tess_level_visitor::visit(ir_variable *ir) in visit()
201 ir_variable **new_var = NULL; in lower_tess_level_array()
390 ir_variable *formal_param = (ir_variable *) formal_param_node; in visit_leave()
407 ir_variable *temp = new(ctx) ir_variable( in visit_leave()
Dopt_tree_grafting.cpp64 ir_variable *graft_var) in ir_tree_grafting_visitor()
81 ir_visitor_status check_graft(ir_instruction *ir, ir_variable *var);
86 ir_variable *graft_var;
91 ir_variable *var;
106 dereferences_variable(ir_instruction *ir, ir_variable *var) in dereferences_variable()
163 ir_tree_grafting_visitor::check_graft(ir_instruction *ir, ir_variable *var) in check_graft()
208 ir_variable *sig_param = (ir_variable *) formal_node; in visit_enter()
315 ir_variable *lhs_var, in try_tree_grafting()
360 ir_variable *lhs_var = assign->whole_variable_written(); in tree_grafting_basic_block()
Dbuiltin_variables.cpp446 ir_variable *add_input(int slot, const glsl_type *type, int precision, in add_input()
453 ir_variable *add_input(int slot, const glsl_type *type, const char *name, in add_input()
459 ir_variable *add_output(int slot, const glsl_type *type, int precision, in add_output()
465 ir_variable *add_output(int slot, const glsl_type *type, const char *name) in add_output()
470 ir_variable *add_index_output(int slot, int index, const glsl_type *type, in add_index_output()
477 ir_variable *add_system_value(int slot, const glsl_type *type, int precision, in add_system_value()
482 ir_variable *add_system_value(int slot, const glsl_type *type, in add_system_value()
488 ir_variable *add_variable(const char *name, const glsl_type *type,
491 ir_variable *add_index_variable(const char *name, const glsl_type *type,
494 ir_variable *add_uniform(const glsl_type *type, int precision,
[all …]
Dast_function.cpp99 foreach_in_list(const ir_variable, param, parameters) { in prototype_string()
110 const ir_variable *formal, const ir_variable *actual) in verify_image_parameter()
161 ir_variable *var) in verify_first_atomic_parameter()
188 ir_variable *var) in verify_atomic_image_parameter_qualifier()
231 foreach_in_list(const ir_variable, formal, &sig->parameters) { in verify_parameter_modes()
276 ir_variable *var = NULL; in verify_parameter_modes()
312 ir_variable *var = actual->variable_referenced(); in verify_parameter_modes()
343 ir_variable *var = actual->variable_referenced(); in verify_parameter_modes()
415 ir_variable *var = idx->variable_referenced(); in copy_index_derefs_to_temps()
423 ir_variable *tmp = new(d->mem_ctx) ir_variable(idx->type, "idx_tmp", in copy_index_derefs_to_temps()
[all …]
Dbuiltin_functions.cpp1016 ir_variable *in_var(const glsl_type *type, const char *name);
1017 ir_variable *out_var(const glsl_type *type, const char *name);
1024 ir_dereference_variable *var_ref(ir_variable *var);
1025 ir_dereference_array *array_ref(ir_variable *var, int i);
1026 ir_swizzle *matrix_elt(ir_variable *var, int col, int row);
1027 ir_dereference_record *record_ref(ir_variable *var, const char *field);
1029 ir_expression *asin_expr(ir_variable *x, float p0, float p1);
1030 void do_atan(ir_factory &body, const glsl_type *type, ir_variable *res, operand y_over_x);
1038 ir_call *call(ir_function *f, ir_variable *ret, exec_list params);
5644 ir_variable *
[all …]
/third_party/mesa3d/src/compiler/glsl/tests/
Darray_refcount_test.cpp154 ir_variable **vars = new ir_variable *[count]; in validate_variables_in_hash_table()
163 vars[i] = va_arg(args, ir_variable *); in validate_variables_in_hash_table()
169 const ir_variable *const v = ir->as_variable(); in validate_variables_in_hash_table()
212 ir_variable *const var = in TEST_F()
213 new(mem_ctx) ir_variable(glsl_type::int_type, "a", ir_var_auto); in TEST_F()
226 ir_variable *const var = in TEST_F()
227 new(mem_ctx) ir_variable(glsl_type::vec4_type, "a", ir_var_auto); in TEST_F()
240 ir_variable *const var = in TEST_F()
241 new(mem_ctx) ir_variable(glsl_type::mat4_type, "a", ir_var_auto); in TEST_F()
254 ir_variable *const var = in TEST_F()
[all …]
Dlower_int64_test.cpp34 ir_variable **expanded_src);
38 ir_variable *result[4]);
52 ir_variable *expanded_src[4];
83 ir_variable *var = new(mem_ctx) ir_variable(type, in create_variable()
99 ir_variable *expanded_src[4]) in check_expanded_source()
154 ir_variable *const tmp1 = ir->as_variable(); in check_instructions()
173 ir_variable *const tmp2 = ir->as_variable(); in check_instructions()
219 ir_variable *const var = new(mem_ctx) ir_variable(type, in TEST_F()
382 ir_variable *expanded_src[4];
411 expanded_src[i] = new(mem_ctx) ir_variable(glsl_type::uvec2_type, in TEST_F()
[all …]
Dbuiltin_variable_test.cpp105 ir_variable *const var = node->as_variable(); in names_start_with_gl()
115 ir_variable *const var = node->as_variable(); in uniforms_and_system_values_dont_have_explicit_location()
129 ir_variable *const var = node->as_variable(); in constants_are_constant()
144 ir_variable *const var = node->as_variable(); in no_invalid_variable_modes()
181 ir_variable *const var = node->as_variable(); in TEST_F()
196 ir_variable *const var = node->as_variable(); in TEST_F()
249 ir_variable *const var = node->as_variable(); in TEST_F()
269 ir_variable *const var = node->as_variable(); in TEST_F()
320 ir_variable *const var = node->as_variable(); in TEST_F()
366 ir_variable *const var = node->as_variable(); in TEST_F()

1234