Home
last modified time | relevance | path

Searched refs:glsl_type (Results 1 – 25 of 33) sorted by relevance

12

/external/mesa3d/src/glsl/
Dbuiltin_types.h24 const glsl_type glsl_type::_error_type =
25 glsl_type(GL_INVALID_ENUM, GLSL_TYPE_ERROR, 0, 0, "");
27 const glsl_type glsl_type::void_type =
28 glsl_type(GL_INVALID_ENUM, GLSL_TYPE_VOID, 0, 0, "void");
30 const glsl_type *const glsl_type::error_type = & glsl_type::_error_type;
38 const glsl_type glsl_type::builtin_core_types[] = {
39 glsl_type(GL_BOOL, GLSL_TYPE_BOOL, 1, 1, "bool"),
40 glsl_type(GL_BOOL_VEC2, GLSL_TYPE_BOOL, 2, 1, "bvec2"),
41 glsl_type(GL_BOOL_VEC3, GLSL_TYPE_BOOL, 3, 1, "bvec3"),
42 glsl_type(GL_BOOL_VEC4, GLSL_TYPE_BOOL, 4, 1, "bvec4"),
[all …]
Dglsl_types.h68 struct glsl_type { struct
84 if (glsl_type::mem_ctx == NULL) { in new() argument
85 glsl_type::mem_ctx = hieralloc_init("glsl_type"); in new()
86 assert(glsl_type::mem_ctx != NULL); in new()
91 type = hieralloc_size(glsl_type::mem_ctx, size); in new()
134 const struct glsl_type *array; /**< Type of array elements. */ argument
135 const struct glsl_type *parameters; /**< Parameters to function. */
144 static const glsl_type *const error_type; argument
145 static const glsl_type *const int_type; argument
146 static const glsl_type *const ivec4_type; argument
[all …]
Dglsl_types.cpp35 hash_table *glsl_type::array_types = NULL;
36 hash_table *glsl_type::record_types = NULL;
37 void *glsl_type::mem_ctx = NULL;
40 glsl_type::init_hieralloc_type_ctx(void) in init_hieralloc_type_ctx()
42 if (glsl_type::mem_ctx == NULL) { in init_hieralloc_type_ctx()
43 glsl_type::mem_ctx = hieralloc_autofree_context(); in init_hieralloc_type_ctx()
44 assert(glsl_type::mem_ctx != NULL); in init_hieralloc_type_ctx()
48 glsl_type::glsl_type(GLenum gl_type, in glsl_type() function in glsl_type
66 glsl_type::glsl_type(GLenum gl_type, in glsl_type() function in glsl_type
81 glsl_type::glsl_type(const glsl_struct_field *fields, unsigned num_fields, in glsl_type() function in glsl_type
[all …]
Dir_variable.cpp35 const glsl_type *type, exec_list *instructions, in add_variable()
69 const char *name, const glsl_type *type) in add_uniform()
82 const glsl_type *const type = symtab->get_type(proto->type); in add_builtin_variable()
96 -1, glsl_type::int_type, in add_builtin_constant()
161 const glsl_type *const mat4_array_type = in generate_110_uniforms()
162 glsl_type::get_array_instance(glsl_type::mat4_type, in generate_110_uniforms()
174 glsl_type::get_array_instance(glsl_type::vec4_type, in generate_110_uniforms()
179 const glsl_type *const material_parameters_type = in generate_110_uniforms()
184 const glsl_type *const light_source_array_type = in generate_110_uniforms()
185glsl_type::get_array_instance(state->symbols->get_type("gl_LightSourceParameters"), state->Const.M… in generate_110_uniforms()
[all …]
Dast_to_hir.cpp103 apply_implicit_conversion(const glsl_type *to, ir_rvalue * &from, in apply_implicit_conversion()
132 to = glsl_type::get_instance(GLSL_TYPE_FLOAT, from->type->vector_elements, in apply_implicit_conversion()
153 static const struct glsl_type *
158 const glsl_type *type_a = value_a->type; in arithmetic_result_type()
159 const glsl_type *type_b = value_b->type; in arithmetic_result_type()
170 return glsl_type::error_type; in arithmetic_result_type()
183 return glsl_type::error_type; in arithmetic_result_type()
200 return glsl_type::error_type; in arithmetic_result_type()
243 return glsl_type::error_type; in arithmetic_result_type()
288 const glsl_type *const type = in arithmetic_result_type()
[all …]
Dir.cpp31 this->type = glsl_type::error_type; in ir_rvalue()
194 ir_expression::ir_expression(int op, const struct glsl_type *type, in ir_expression()
207 ir_expression::ir_expression(int op, const struct glsl_type *type, in ir_expression()
221 ir_expression::ir_expression(int op, const struct glsl_type *type, in ir_expression()
271 this->type = glsl_type::bool_type; in ir_expression()
296 this->type = glsl_type::bool_type; in ir_expression()
327 this->type = glsl_type::float_type; in ir_expression()
332 this->type = glsl_type::float_type; in ir_expression()
443 ir_constant::ir_constant(const struct glsl_type *type, in ir_constant()
457 this->type = glsl_type::float_type; in ir_constant()
[all …]
Dast_function.cpp31 convert_component(ir_rvalue *src, const glsl_type *desired_type);
34 apply_implicit_conversion(const glsl_type *to, ir_rvalue * &from,
72 prototype_string(const glsl_type *return_type, const char *name, in prototype_string()
233 convert_component(ir_rvalue *src, const glsl_type *desired_type) in convert_component()
335 const glsl_type *constructor_type, in process_array_constructor()
379 glsl_type::get_array_instance(constructor_type->element_type(), in process_array_constructor()
394 const glsl_type *desired_type = in process_array_constructor()
395 glsl_type::get_instance(GLSL_TYPE_FLOAT, in process_array_constructor()
449 constant_record_constructor(const glsl_type *constructor_type, in constant_record_constructor()
488 emit_inline_vector_constructor(const glsl_type *type, in emit_inline_vector_constructor()
[all …]
Dglsl_symbol_table.cpp49 symbol_table_entry(const glsl_type *t) : v(0), f(0), t(t) {} in symbol_table_entry()
53 const glsl_type *t;
118 bool glsl_symbol_table::add_type(const char *name, const glsl_type *t) in add_type()
151 const glsl_type *glsl_symbol_table::get_type(const char *name) in get_type()
Dir_div_to_mul_rcp.cpp83 const struct glsl_type *vec_type; in visit_leave()
85 vec_type = glsl_type::get_instance(GLSL_TYPE_FLOAT, in visit_leave()
96 vec_type = glsl_type::get_instance(GLSL_TYPE_FLOAT, in visit_leave()
Dir.h93 const struct glsl_type *type;
244 ir_variable(const struct glsl_type *, const char *, ir_variable_mode);
379 ir_function_signature(const glsl_type *return_type);
434 const struct glsl_type *return_type;
850 ir_expression(int op, const struct glsl_type *type, ir_rvalue *);
856 ir_expression(int op, const struct glsl_type *type,
863 ir_expression(int op, const struct glsl_type *type,
1466 ir_constant(const struct glsl_type *type, const ir_constant_data *data);
1475 ir_constant(const struct glsl_type *type, exec_list *values);
1492 static ir_constant *zero(void *mem_ctx, const glsl_type *type);
Dlower_if_to_cond_assign.cpp119 glsl_type::bool_type, in move_block_to_cond_assign()
128 glsl_type::bool_type, in move_block_to_cond_assign()
179 cond_var = new(mem_ctx) ir_variable(glsl_type::bool_type, in visit_leave()
Dir_validate.cpp106 if (ir->condition->type != glsl_type::bool_type) { in visit()
266 assert(ir->type == glsl_type::bool_type); in visit_leave()
331 assert(ir->type == glsl_type::bool_type); in visit_leave()
366 assert(ir->type == glsl_type::bool_type); in visit_leave()
367 assert(ir->operands[0]->type == glsl_type::bool_type); in visit_leave()
368 assert(ir->operands[1]->type == glsl_type::bool_type); in visit_leave()
372 assert(ir->type == glsl_type::float_type); in visit_leave()
514 assert(ir->type != glsl_type::error_type); in check_node_type()
Dglsl_symbol_table.h100 bool add_type(const char *name, const glsl_type *t);
114 const glsl_type *get_type(const char *name);
Dlower_vec_index_to_cond_assign.cpp90 index = new(base_ir) ir_variable(glsl_type::int_type, in convert_vec_index_to_cond_assign()
107 glsl_type::bool_type, in convert_vec_index_to_cond_assign()
175 index = new(ir) ir_variable(glsl_type::int_type, "vec_index_tmp_i", in visit_leave()
196 glsl_type::bool_type, in visit_leave()
Dlower_instructions.cpp147 const struct glsl_type *vec_type; in div_to_mul_rcp()
149 vec_type = glsl_type::get_instance(GLSL_TYPE_FLOAT, in div_to_mul_rcp()
160 vec_type = glsl_type::get_instance(GLSL_TYPE_FLOAT, in div_to_mul_rcp()
Dlower_mat_op_to_vec.cpp297 const glsl_type *const bvec_type = in do_equal_mat_mat()
298 glsl_type::get_instance(GLSL_TYPE_BOOL, columns, 1); in do_equal_mat_mat()
311 glsl_type::bool_type, op0, op1); in do_equal_mat_mat()
326 new(this->mem_ctx) ir_expression(ir_unop_any, glsl_type::bool_type, in do_equal_mat_mat()
331 glsl_type::bool_type, in do_equal_mat_mat()
Dir_print_visitor.cpp28 static void print_type(const glsl_type *t);
45 const glsl_type *const s = state->user_structures[i]; in _mesa_print_ir()
78 print_type(const glsl_type *t) in print_type()
312 const glsl_type *const base_type = ir->type->get_base_type(); in visit()
Dir_function.cpp28 type_compare(const glsl_type *a, const glsl_type *b) in type_compare()
Dir_reader.cpp39 static const glsl_type *read_type(_mesa_glsl_parse_state *, s_expression *);
124 static const glsl_type *
142 const glsl_type *base_type = read_type(st, base_expr); in read_type()
155 return glsl_type::get_array_instance(base_type, size->value()); in read_type()
171 const glsl_type *type = st->symbols->get_type(type_sym->value()); in read_type()
261 const glsl_type *return_type = read_type(st, type_expr); in read_function_sig()
427 const glsl_type *type = read_type(st, type_expr); in read_declaration()
727 const glsl_type *type = read_type(st, type_expr); in read_expression()
824 const glsl_type *type = read_type(st, type_expr); in read_constant()
859 const glsl_type *const base_type = type->get_base_type(); in read_constant()
Dloop_controls.cpp106 new(mem_ctx) ir_expression(ir_unop_f2i, glsl_type::int_type, iter, in calculate_iterations()
138 new(mem_ctx) ir_expression(op, glsl_type::bool_type, add, to); in calculate_iterations()
Dlinker.cpp212 count_attribute_slots(const glsl_type *t) in count_attribute_slots()
908 const glsl_type *type = in link_intrastage_shaders()
909 glsl_type::get_array_instance(var->type->fields.array, in link_intrastage_shaders()
976 var->type = glsl_type::get_array_instance(var->type->fields.array, in update_array_sizes()
988 const char *name, const glsl_type *type, GLenum shader_type, in add_uniform()
994 const glsl_type *field_type = type->fields.structure[i].type; in add_uniform()
1006 const glsl_type *array_elem_type = NULL; in add_uniform()
Dopt_structure_splitting.cpp262 const glsl_type *type = ir->rhs->type; in visit_leave()
332 const struct glsl_type *type = entry->var->type; in do_structure_splitting()
Dlower_discard.cpp175 ir_variable *temp = new(mem_ctx) ir_variable(glsl_type::bool_type, in visit_leave()
Dlower_jumps.cpp125 …this->execute_flag = new(this->signature) ir_variable(glsl_type::bool_type, "execute_flag", ir_var… in get_execute_flag()
136 …this->break_flag = new(this->signature) ir_variable(glsl_type::bool_type, "break_flag", ir_var_tem… in get_break_flag()
164 …this->return_flag = new(this->signature) ir_variable(glsl_type::bool_type, "return_flag", ir_var_t… in get_return_flag()
/external/mesa3d/src/mesa/program/
Dprog_uniform.h55 const struct glsl_type *Type;

12