/external/mesa3d/src/compiler/glsl/ |
D | lower_instructions.cpp | 109 … ir_variable *temp = new(ir) ir_variable(glsl_get_base_glsl_type(ir->operands[0]->type), "dot_res", in double_dot_to_fma() 174 ir_variable *temp = in find_lsb_to_float_cast() 175 new(ir) ir_variable(glsl_ivec_type(elements), "temp", ir_var_temporary); in find_lsb_to_float_cast() 176 ir_variable *lsb_only = in find_lsb_to_float_cast() 177 new(ir) ir_variable(glsl_uvec_type(elements), "lsb_only", ir_var_temporary); in find_lsb_to_float_cast() 178 ir_variable *as_float = in find_lsb_to_float_cast() 179 new(ir) ir_variable(glsl_vec_type(elements), "as_float", ir_var_temporary); in find_lsb_to_float_cast() 180 ir_variable *lsb = in find_lsb_to_float_cast() 181 new(ir) ir_variable(glsl_ivec_type(elements), "lsb", ir_var_temporary); in find_lsb_to_float_cast() 257 ir_variable *temp = in find_msb_to_float_cast() [all …]
|
D | opt_function_inlining.cpp | 39 ir_variable *orig, 86 ir_variable *index; in visit_enter() 89 index = new(ctx) ir_variable(deref->array_index->type, "saved_idx", ir_var_temporary); in visit_enter() 104 should_replace_variable(ir_variable *sig_param, ir_rvalue *param, in should_replace_variable() 141 ir_variable **parameters; in generate_inline() 149 parameters = new ir_variable *[num_parameters]; in generate_inline() 157 ir_variable *sig_param = (ir_variable *) formal_node; in generate_inline() 243 ir_variable *sig_param = (ir_variable *) formal_node; in generate_inline() 261 const ir_variable *const sig_param = (ir_variable *) formal_node; in generate_inline() 292 ir_variable_replacement_visitor(ir_variable *orig, ir_rvalue *repl) in ir_variable_replacement_visitor() [all …]
|
D | lower_packing_builtins.cpp | 238 ir_variable *u = factory.make_temp(&glsl_type_builtin_uvec2, in pack_uvec2_to_uint() 266 ir_variable *u = factory.make_temp(&glsl_type_builtin_uvec4, in pack_uvec4_to_uint() 304 ir_variable *u = factory.make_temp(&glsl_type_builtin_uint, in unpack_uint_to_uvec2() 309 ir_variable *u2 = factory.make_temp(&glsl_type_builtin_uvec2, in unpack_uint_to_uvec2() 338 ir_variable *i = factory.make_temp(&glsl_type_builtin_int, in unpack_uint_to_ivec2() 343 ir_variable *i2 = factory.make_temp(&glsl_type_builtin_ivec2, in unpack_uint_to_ivec2() 367 ir_variable *u = factory.make_temp(&glsl_type_builtin_uint, in unpack_uint_to_uvec4() 372 ir_variable *u4 = factory.make_temp(&glsl_type_builtin_uvec4, in unpack_uint_to_uvec4() 419 ir_variable *i = factory.make_temp(&glsl_type_builtin_int, in unpack_uint_to_ivec4() 424 ir_variable *i4 = factory.make_temp(&glsl_type_builtin_ivec4, in unpack_uint_to_ivec4() [all …]
|
D | builtin_functions.cpp | 1169 ir_variable *in_var(const glsl_type *type, const char *name); 1170 ir_variable *in_mediump_var(const glsl_type *type, const char *name); 1171 ir_variable *in_highp_var(const glsl_type *type, const char *name); 1172 ir_variable *out_var(const glsl_type *type, const char *name); 1173 ir_variable *out_lowp_var(const glsl_type *type, const char *name); 1174 ir_variable *out_highp_var(const glsl_type *type, const char *name); 1175 ir_variable *as_highp(ir_factory &body, ir_variable *var); 1183 ir_dereference_variable *var_ref(ir_variable *var); 1184 ir_dereference_array *array_ref(ir_variable *var, int i); 1185 ir_swizzle *matrix_elt(ir_variable *var, int col, int row); [all …]
|
D | ir_variable_refcount.h | 47 ir_variable_refcount_entry(ir_variable *var); 49 ir_variable *var; /* The key: the variable's pointer. */ 77 virtual ir_visitor_status visit(ir_variable *); 86 ir_variable_refcount_entry *get_variable_entry(ir_variable *var);
|
D | opt_tree_grafting.cpp | 64 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() 363 ir_variable *lhs_var = assign->whole_variable_written(); in tree_grafting_basic_block()
|
D | ast_function.cpp | 103 ir_type_variable ? ((ir_variable *)param)->type : in prototype_string() 114 const ir_variable *formal, const ir_variable *actual) in verify_image_parameter() 165 ir_variable *var) in verify_first_atomic_parameter() 192 ir_variable *var) in verify_atomic_image_parameter_qualifier() 235 foreach_in_list(const ir_variable, formal, &sig->parameters) { in verify_parameter_modes() 280 ir_variable *var = NULL; in verify_parameter_modes() 316 ir_variable *var = actual->variable_referenced(); in verify_parameter_modes() 347 ir_variable *var = actual->variable_referenced(); in verify_parameter_modes() 419 ir_variable *var = idx->variable_referenced(); in copy_index_derefs_to_temps() 427 ir_variable *tmp = new(d->mem_ctx) ir_variable(idx->type, "idx_tmp", in copy_index_derefs_to_temps() [all …]
|
D | builtin_variables.cpp | 445 ir_variable *add_input(int slot, const glsl_type *type, int precision, in add_input() 452 ir_variable *add_input(int slot, const glsl_type *type, const char *name, in add_input() 458 ir_variable *add_output(int slot, const glsl_type *type, int precision, in add_output() 464 ir_variable *add_output(int slot, const glsl_type *type, const char *name) in add_output() 469 ir_variable *add_index_output(int slot, int index, const glsl_type *type, in add_index_output() 476 ir_variable *add_system_value(int slot, const glsl_type *type, int precision, in add_system_value() 481 ir_variable *add_system_value(int slot, const glsl_type *type, in add_system_value() 487 ir_variable *add_variable(const char *name, const glsl_type *type, 490 ir_variable *add_index_variable(const char *name, const glsl_type *type, 493 ir_variable *add_uniform(const glsl_type *type, int precision, [all …]
|
D | lower_precision.cpp | 423 ir_variable *resource = param->variable_referenced(); in handle_call() 460 ir_variable *var = param->variable_referenced(); in handle_call() 550 ir_variable *var = ir->return_deref->variable_referenced(); in visit_leave() 583 ir_variable *var = ir->lhs->variable_referenced(); in visit_leave() 853 ir_variable *return_var = in visit_enter() 908 foreach_in_list(ir_variable, param, &lowered_sig->parameters) { in map_builtin() 967 virtual ir_visitor_status visit(ir_variable *var); 1012 lower_variables_visitor::visit(ir_variable *var) in visit() 1107 ir_variable *var = lhs->variable_referenced(); in visit_enter() 1109 ir_variable *rhs_var = rhs_deref ? rhs_deref->variable_referenced() : NULL; in visit_enter() [all …]
|
D | opt_flip_matrices.cpp | 49 ir_variable *var = ir->as_variable(); in matrix_flipper() 64 ir_variable *mvp_transpose; 65 ir_variable *texmat_transpose; 77 ir_variable *mat_var = ir->operands[0]->variable_referenced(); in visit_enter()
|
D | ir_variable_refcount.cpp | 68 ir_variable_refcount_entry::ir_variable_refcount_entry(ir_variable *var) in ir_variable_refcount_entry() 78 ir_variable_refcount_visitor::get_variable_entry(ir_variable *var) in get_variable_entry() 95 ir_variable_refcount_visitor::visit(ir_variable *ir) in visit() 110 ir_variable *const var = ir->variable_referenced(); in visit()
|
D | ir_clone.cpp | 40 ir_variable * 41 ir_variable::clone(void *mem_ctx, struct hash_table *ht) const in clone() 43 ir_variable *var = new(mem_ctx) ir_variable(this->type, this->name, in clone() 72 _mesa_hash_table_insert(ht, (void *)const_cast<ir_variable *>(this), var); in clone() 180 ir_variable *new_var; in clone() 184 new_var = entry ? (ir_variable *) entry->data : this->var; in clone() 321 foreach_in_list(const ir_variable, param, &this->parameters) { in clone_prototype() 322 assert(const_cast<ir_variable *>(param)->as_variable() != NULL); in clone_prototype() 324 ir_variable *const param_copy = param->clone(mem_ctx, ht); in clone_prototype()
|
D | ir.h | 245 virtual ir_variable *variable_referenced() const in variable_referenced() 260 virtual ir_variable *whole_variable_referenced() in whole_variable_referenced() 384 class ir_variable : public ir_instruction { 386 ir_variable(const struct glsl_type *, const char *, ir_variable_mode); 388 virtual ir_variable *clone(void *mem_ctx, struct hash_table *ht) const; 577 return this->name != ir_variable::tmp_name && in is_name_ralloced() 942 friend class ir_variable; member 1479 ir_variable *whole_variable_written(); 1584 virtual ir_variable *variable_referenced() const; 1622 ir_variable *var, ir_rvalue *array_idx) in ir_call() [all …]
|
D | lower_vector_derefs.cpp | 71 ir_variable *var = deref->variable_referenced(); in visit_enter() 91 ir_variable *const src_temp = in visit_enter() 100 ir_variable *const arr_index = in visit_enter() 182 ir_variable *var = deref->variable_referenced(); in handle_rvalue()
|
D | ir_function.cpp | 39 const ir_variable *var = inst->as_variable(); in get_param_type() 80 const ir_variable *const param = inst_a->as_variable(); in parameter_lists_match() 157 get_parameter_match_type(const ir_variable *param, in get_parameter_match_type() 259 (const ir_variable *)node_a, in is_best_inexact_overload() 262 (const ir_variable *)node_b, in is_best_inexact_overload()
|
D | lower_jumps.cpp | 172 ir_variable* execute_flag; /* cleared to emulate continue */ 184 ir_variable* get_execute_flag() in get_execute_flag() 189 …this->execute_flag = new(this->signature) ir_variable(&glsl_type_builtin_bool, "execute_flag", ir_… in get_execute_flag() 200 …ir_variable* return_flag; /* used to break out of all loops and then jump to the return instructio… 201 ir_variable* return_value; 505 ir_variable* execute_flag = this->loop.get_execute_flag(); in visit() 745 ir_variable* return_value = this->function.return_value; in visit()
|
D | ast_array_index.cpp | 53 ir_variable *var = deref_var->var; in update_max_array_access() 119 ir_variable *var = array->variable_referenced(); in get_implicit_array_size() 219 ir_variable *v = array->whole_variable_referenced(); in _mesa_ast_array_index_to_hir() 240 ir_variable *var = array->variable_referenced(); in _mesa_ast_array_index_to_hir() 278 ir_variable *v = array->whole_variable_referenced(); in _mesa_ast_array_index_to_hir()
|
D | glsl_symbol_table.h | 70 bool add_variable(ir_variable *v); 82 ir_variable *get_variable(const char *name);
|
D | ir_expression_flattening.cpp | 65 ir_variable *var; in handle_rvalue() 74 var = new(ctx) ir_variable(ir->type, "flattening_tmp", ir_var_temporary); in handle_rvalue()
|
D | glsl_parser_extras.h | 47 ir_variable *test_var; 48 ir_variable *is_fallthru_var; 52 ir_variable *continue_inside; 55 ir_variable *run_default; 166 const ir_variable *var) in check_explicit_attrib_location_allowed() 182 const ir_variable *var) in check_separate_shader_objects_allowed() 198 const ir_variable *) in check_explicit_uniform_location_allowed()
|
D | glsl_symbol_table.cpp | 79 symbol_table_entry(ir_variable *v) : in symbol_table_entry() 94 ir_variable *v; 133 bool glsl_symbol_table::add_variable(ir_variable *v) in add_variable() 223 ir_variable *glsl_symbol_table::get_variable(const char *name) in get_variable()
|
D | ast_to_hir.cpp | 93 ir_variable *var = ir->variable_referenced(); in visit() 112 ir_variable *get_variable() { in get_variable() 126 ir_variable *found; 177 ir_variable *const var = node->as_variable(); in _mesa_ast_to_hir() 187 ir_variable *const var = state->symbols->get_variable("gl_FragCoord"); in _mesa_ast_to_hir() 228 ir_variable *error_var = v.get_variable(); in _mesa_ast_to_hir() 855 ir_variable *var = lhs->variable_referenced(); in validate_assignment() 858 ir_variable *index_var = index ? index->variable_referenced() : NULL; in validate_assignment() 950 ir_variable *lhs_var = lhs->variable_referenced(); in do_assignment() 1014 ir_variable *const var = d->variable_referenced(); in do_assignment() [all …]
|
D | ir.cpp | 123 ir_variable * 126 ir_variable *v = this->lhs->whole_variable_referenced(); in whole_variable_written() 657 ir_variable * 1627 ir_dereference_variable::ir_dereference_variable(ir_variable *var) in ir_dereference_variable() 1646 ir_dereference_array::ir_dereference_array(ir_variable *var, in ir_dereference_array() 1688 ir_dereference_record::ir_dereference_record(ir_variable *var, in ir_dereference_record() 1702 ir_variable *var = this->variable_referenced(); in is_lvalue() 1927 ir_variable * 1934 bool ir_variable::temporaries_allocate_names = false; 1936 const char ir_variable::tmp_name[] = "compiler_temp"; [all …]
|
/external/mesa3d/src/compiler/glsl/tests/ |
D | builtin_variable_test.cpp | 105 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()
|
D | general_ir_test.cpp | 63 ir_variable *const v = in TEST_F() 64 new(mem_ctx) ir_variable(iface, name, ir_var_uniform); in TEST_F() 93 ir_variable *const v = in TEST_F() 94 new(mem_ctx) ir_variable(interface_array, name, ir_var_uniform); in TEST_F()
|