/third_party/mesa3d/src/compiler/glsl/ |
D | lower_blend_equation_advanced.cpp | 40 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 …]
|
D | lower_instructions.cpp | 321 ir_variable *x = new(ir) ir_variable(ir->operands[0]->type, "mod_x", in mod_to_floor() 323 ir_variable *y = new(ir) ir_variable(ir->operands[1]->type, "mod_y", in mod_to_floor() 434 ir_variable *x = new(ir) ir_variable(ir->type, "x", ir_var_temporary); in ldexp_to_arith() 435 ir_variable *exp = new(ir) ir_variable(ivec, "exp", ir_var_temporary); in ldexp_to_arith() 436 ir_variable *result = new(ir) ir_variable(uvec, "result", ir_var_temporary); in ldexp_to_arith() 438 ir_variable *extracted_biased_exp = in ldexp_to_arith() 439 new(ir) ir_variable(ivec, "extracted_biased_exp", ir_var_temporary); in ldexp_to_arith() 440 ir_variable *resulting_biased_exp = in ldexp_to_arith() 441 new(ir) ir_variable(ivec, "resulting_biased_exp", ir_var_temporary); in ldexp_to_arith() 443 ir_variable *sign_mantissa = in ldexp_to_arith() [all …]
|
D | builtin_int64.h | 11 …ir_variable *const r0001 = new(mem_ctx) ir_variable(glsl_type::uvec2_type, "a", ir_var_function_in… in umul64() 13 …ir_variable *const r0002 = new(mem_ctx) ir_variable(glsl_type::uvec2_type, "b", ir_var_function_in… in umul64() 15 … ir_variable *const r0003 = new(mem_ctx) ir_variable(glsl_type::uvec2_type, "result", ir_var_auto); in umul64() 41 …ir_variable *const r0007 = new(mem_ctx) ir_variable(glsl_type::ivec2_type, "a", ir_var_function_in… in sign64() 43 … ir_variable *const r0008 = new(mem_ctx) ir_variable(glsl_type::ivec2_type, "result", ir_var_auto); in sign64() 67 …ir_variable *const r000C = new(mem_ctx) ir_variable(glsl_type::uvec2_type, "n", ir_var_function_in… in udivmod64() 69 …ir_variable *const r000D = new(mem_ctx) ir_variable(glsl_type::uvec2_type, "d", ir_var_function_in… in udivmod64() 71 ir_variable *const r000E = new(mem_ctx) ir_variable(glsl_type::int_type, "i", ir_var_auto); in udivmod64() 73 … ir_variable *const r000F = new(mem_ctx) ir_variable(glsl_type::uint64_t_type, "n64", ir_var_auto); in udivmod64() 75 …ir_variable *const r0010 = new(mem_ctx) ir_variable(glsl_type::int_type, "log2_denom", ir_var_auto… in udivmod64() [all …]
|
D | lower_shared_reference.cpp | 48 const ir_variable *var; 87 unsigned get_shared_offset(const ir_variable *); 102 lower_shared_reference_visitor::get_shared_offset(const ir_variable *var) in get_shared_offset() 132 ir_variable *var = deref->variable_referenced(); in handle_rvalue() 155 ir_variable *load_var = new(mem_ctx) ir_variable(type, in handle_rvalue() 160 ir_variable *load_offset = new(mem_ctx) ir_variable(glsl_type::uint_type, in handle_rvalue() 190 ir_variable *var = ir->lhs->variable_referenced(); in handle_assignment() 202 ir_variable *store_var = new(mem_ctx) ir_variable(type, in handle_assignment() 221 ir_variable *store_offset = new(mem_ctx) ir_variable(glsl_type::uint_type, in handle_assignment() 275 ir_variable *offset_ref = new(mem_ctx) in shared_store() [all …]
|
D | opt_copy_propagation_elements.cpp | 59 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 …]
|
D | lower_output_reads.cpp | 74 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()
|
D | lower_ubo_reference.cpp | 63 ir_variable *var, 79 void write_to_memory(void *mem_ctx, ir_dereference *deref, ir_variable *var, 80 ir_variable *write_var, unsigned write_mask); 103 ir_variable *); 117 ir_variable *variable; 275 ir_variable *var, in setup_for_load_or_store() 343 ir_variable *var = deref->variable_referenced(); in handle_rvalue() 376 ir_variable *load_var = new(mem_ctx) ir_variable(type, in handle_rvalue() 381 ir_variable *load_offset = new(mem_ctx) ir_variable(glsl_type::uint_type, in handle_rvalue() 441 ir_variable *block_ref = new(mem_ctx) in ssbo_store() [all …]
|
D | opt_dead_builtin_varyings.cpp | 87 ir_variable *var = ir->variable_referenced(); in visit_enter() 146 ir_variable *var = ir->variable_referenced(); in visit() 169 virtual ir_visitor_status visit(ir_variable *var) in visit() 248 ir_variable *texcoord_array; 253 ir_variable *fragdata_array; 256 ir_variable *color[2]; 257 ir_variable *backcolor[2]; 261 ir_variable *fog; 328 new (ctx) ir_variable(glsl_type::vec4_type, name, in replace_varyings_visitor() 335 new (ctx) ir_variable(glsl_type::vec4_type, name, in replace_varyings_visitor() [all …]
|
D | lower_cs_derived.cpp | 70 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()
|
D | link_interface_blocks.cpp | 110 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 …]
|
D | lower_packing_builtins.cpp | 213 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 …]
|
D | opt_function_inlining.cpp | 39 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 …]
|
D | opt_array_splitting.cpp | 50 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 …]
|
D | opt_constant_variable.cpp | 45 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() 125 ir_variable *var = ir->whole_variable_written(); in visit_enter() 157 ir_variable *param = (ir_variable *) formal_node; in visit_enter() 161 ir_variable *var = param_rval->variable_referenced(); in visit_enter() 181 ir_variable *var = ir->return_deref->variable_referenced(); in visit_enter()
|
D | lower_packed_varyings.cpp | 185 ir_variable *unpacked_var, const char *name, 189 ir_variable *unpacked_var, const char *name, 192 ir_variable *unpacked_var, 195 bool needs_lowering(ir_variable *var); 217 ir_variable **packed_varyings; 259 packed_varyings((ir_variable **) in lower_packed_varyings_visitor() 276 ir_variable *var = node->as_variable(); in run() 345 ir_variable *t = new(mem_ctx) ir_variable(lhs->type, "pack", ir_var_temporary); in bitwise_assign_pack() 361 ir_variable *t = new(mem_ctx) ir_variable(lhs->type, "pack", ir_var_temporary); in bitwise_assign_pack() 377 ir_variable *t = new(mem_ctx) ir_variable(lhs->type, "pack", ir_var_temporary); in bitwise_assign_pack() [all …]
|
D | lower_vertex_id.cpp | 53 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()
|
D | opt_structure_splitting.cpp | 47 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() 199 variable_entry *get_splitting_entry(ir_variable *var); 205 ir_structure_splitting_visitor::get_splitting_entry(ir_variable *var) in get_splitting_entry() [all …]
|
D | lower_variable_index_to_cond_assign.cpp | 76 ir_variable * 77 compare_index_block(ir_factory &body, ir_variable *index, in compare_index_block() 103 ir_variable *const condition = body.make_temp(condition_val->type, in compare_index_block() 126 deref_replacer(const ir_variable *variable_to_replace, ir_rvalue *value) in deref_replacer() 144 const ir_variable *variable_to_replace; 181 ir_variable *old_index; 184 ir_variable* var; 224 ir_variable* index; 230 switch_generator(const TFunction& generator, ir_variable *index, in switch_generator() 263 ir_variable *const cond = compare_index_block(body, index, i, comps); in linear_sequence() [all …]
|
D | link_varyings.cpp | 51 get_varying_type(const ir_variable *var, gl_shader_stage stage) in get_varying_type() 69 varying_has_user_specified_location(const ir_variable *var) in varying_has_user_specified_location() 138 ir_variable *var = node->as_variable(); in process_xfb_layout_qualifiers() 167 ir_variable *var = node->as_variable(); in process_xfb_layout_qualifiers() 205 const ir_variable *input, in cross_validate_types_and_qualifiers() 206 const ir_variable *output, in cross_validate_types_and_qualifiers() 411 const ir_variable *input, in cross_validate_front_and_back_color() 412 const ir_variable *front_color, in cross_validate_front_and_back_color() 413 const ir_variable *back_color, in cross_validate_front_and_back_color() 427 compute_variable_location_slot(ir_variable *var, gl_shader_stage stage) in compute_variable_location_slot() [all …]
|
D | lower_distance.cpp | 87 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 …]
|
D | lower_named_interface_blocks.cpp | 138 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()
|
D | ir_function.cpp | 64 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()
|
/third_party/mesa3d/src/compiler/glsl/tests/ |
D | array_refcount_test.cpp | 154 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 …]
|
D | varyings_test.cpp | 42 ir_variable *consumer_inputs_with_locations[VARYING_SLOT_MAX]); 44 ir_variable * 46 const ir_variable *output_var, 49 ir_variable *consumer_inputs_with_locations[VARYING_SLOT_MAX]); 71 ir_variable *junk[VARYING_SLOT_TESS_MAX]; 119 ir_variable *const v = in TEST_F() 120 new(mem_ctx) ir_variable(glsl_type::vec(4), in TEST_F() 144 ir_variable *const clipdistance = in TEST_F() 145 new(mem_ctx) ir_variable(array_8_of_float, in TEST_F() 171 ir_variable *const culldistance = in TEST_F() [all …]
|
D | invalidate_locations_test.cpp | 66 ir_variable *const var = in TEST_F() 67 new(mem_ctx) ir_variable(glsl_type::vec(4), in TEST_F() 89 ir_variable *const var = in TEST_F() 90 new(mem_ctx) ir_variable(glsl_type::vec(4), in TEST_F() 112 ir_variable *const var = in TEST_F() 113 new(mem_ctx) ir_variable(glsl_type::vec(4), in TEST_F() 136 ir_variable *const var = in TEST_F() 137 new(mem_ctx) ir_variable(glsl_type::vec(4), in TEST_F() 159 ir_variable *const var = in TEST_F() 160 new(mem_ctx) ir_variable(glsl_type::vec(4), in TEST_F() [all …]
|