/external/mesa3d/src/glsl/ |
D | builtin_types.h | 24 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 glsl_type::_sampler3D_type = 31 glsl_type(GL_SAMPLER_3D, GLSL_SAMPLER_DIM_3D, 0, 0, GLSL_TYPE_FLOAT, 34 const glsl_type *const glsl_type::error_type = & glsl_type::_error_type; 35 const glsl_type *const glsl_type::void_type = & glsl_type::_void_type; 43 const glsl_type glsl_type::builtin_core_types[] = { 44 glsl_type(GL_BOOL, GLSL_TYPE_BOOL, 1, 1, "bool"), [all …]
|
D | glsl_types.h | 76 struct glsl_type { struct 92 if (glsl_type::mem_ctx == NULL) { in new() argument 93 glsl_type::mem_ctx = ralloc_context(NULL); in new() 94 assert(glsl_type::mem_ctx != NULL); in new() 99 type = ralloc_size(glsl_type::mem_ctx, size); in new() 142 const struct glsl_type *array; /**< Type of array elements. */ argument 143 const struct glsl_type *parameters; /**< Parameters to function. */ 152 static const glsl_type *const error_type; argument 153 static const glsl_type *const void_type; argument 154 static const glsl_type *const int_type; argument [all …]
|
D | glsl_types.cpp | 35 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_ralloc_type_ctx(void) in init_ralloc_type_ctx() 42 if (glsl_type::mem_ctx == NULL) { in init_ralloc_type_ctx() 43 glsl_type::mem_ctx = ralloc_autofree_context(); in init_ralloc_type_ctx() 44 assert(glsl_type::mem_ctx != NULL); in init_ralloc_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 …]
|
D | builtin_variables.cpp | 388 const char *name, const glsl_type *type, in add_variable() 424 const char *name, const glsl_type *type) in add_uniform() 477 const glsl_type *const type = symtab->get_type(proto->type); in add_builtin_variable() 494 name, glsl_type::int_type, in add_builtin_constant() 572 const glsl_type *const mat4_array_type = in generate_110_uniforms() 573 glsl_type::get_array_instance(glsl_type::mat4_type, in generate_110_uniforms() 587 glsl_type::get_array_instance(glsl_type::vec4_type, in generate_110_uniforms() 592 const glsl_type *const material_parameters_type = in generate_110_uniforms() 597 const glsl_type *const light_source_array_type = in generate_110_uniforms() 598 …glsl_type::get_array_instance(symtab->get_type("gl_LightSourceParameters"), state->Const.MaxLights… in generate_110_uniforms() [all …]
|
D | ast_to_hir.cpp | 114 apply_implicit_conversion(const glsl_type *to, ir_rvalue * &from, in apply_implicit_conversion() 143 to = glsl_type::get_instance(GLSL_TYPE_FLOAT, from->type->vector_elements, in apply_implicit_conversion() 164 static const struct glsl_type * 169 const glsl_type *type_a = value_a->type; in arithmetic_result_type() 170 const glsl_type *type_b = value_b->type; in arithmetic_result_type() 181 return glsl_type::error_type; in arithmetic_result_type() 194 return glsl_type::error_type; in arithmetic_result_type() 211 return glsl_type::error_type; in arithmetic_result_type() 254 return glsl_type::error_type; in arithmetic_result_type() 299 const glsl_type *const type = in arithmetic_result_type() [all …]
|
D | ir.cpp | 31 this->type = glsl_type::error_type; in ir_rvalue() 199 ir_expression::ir_expression(int op, const struct glsl_type *type, in ir_expression() 212 ir_expression::ir_expression(int op, const struct glsl_type *type, in ir_expression() 226 ir_expression::ir_expression(int op, const struct glsl_type *type, in ir_expression() 282 this->type = glsl_type::get_instance(GLSL_TYPE_INT, in ir_expression() 291 this->type = glsl_type::get_instance(GLSL_TYPE_FLOAT, in ir_expression() 297 this->type = glsl_type::get_instance(GLSL_TYPE_BOOL, in ir_expression() 304 this->type = glsl_type::get_instance(GLSL_TYPE_UINT, in ir_expression() 309 this->type = glsl_type::float_type; in ir_expression() 313 this->type = glsl_type::bool_type; in ir_expression() [all …]
|
D | lower_ubo_reference.cpp | 54 ir_expression *ubo_load(const struct glsl_type *type, 133 const glsl_type *struct_type = deref_record->record->type; in handle_rvalue() 138 const glsl_type *type = struct_type->fields.structure[i].type; in handle_rvalue() 165 const glsl_type *type = (*rvalue)->type; in handle_rvalue() 171 ir_variable *load_offset = new(mem_ctx) ir_variable(glsl_type::uint_type, in handle_rvalue() 185 lower_ubo_reference_visitor::ubo_load(const glsl_type *type, in ubo_load() 291 ubo_load(glsl_type::float_type, in emit_ubo_loads()
|
D | lower_clip_distance.cpp | 97 assert (ir->type->element_type() == glsl_type::float_type); in visit() 107 = glsl_type::get_array_instance(glsl_type::vec4_type, new_size); in visit() 134 if (old_index->type != glsl_type::int_type) { in create_indices() 135 assert (old_index->type == glsl_type::uint_type); in create_indices() 153 glsl_type::int_type, "clip_distance_index", ir_var_temporary); in create_indices()
|
D | ast_function.cpp | 31 convert_component(ir_rvalue *src, const glsl_type *desired_type); 34 apply_implicit_conversion(const glsl_type *to, ir_rvalue * &from, 74 prototype_string(const glsl_type *return_type, const char *name, in prototype_string() 432 convert_component(ir_rvalue *src, const glsl_type *desired_type) in convert_component() 556 const glsl_type *constructor_type, in process_array_constructor() 600 glsl_type::get_array_instance(constructor_type->element_type(), in process_array_constructor() 616 const glsl_type *desired_type = in process_array_constructor() 617 glsl_type::get_instance(GLSL_TYPE_FLOAT, in process_array_constructor() 678 constant_record_constructor(const glsl_type *constructor_type, in constant_record_constructor() 717 emit_inline_vector_constructor(const glsl_type *type, in emit_inline_vector_constructor() [all …]
|
D | ir.h | 148 const struct glsl_type *type; 308 ir_variable(const struct glsl_type *, const char *, ir_variable_mode); 353 const struct glsl_type *type; 528 ir_function_signature(const glsl_type *return_type); 590 const struct glsl_type *return_type; 1046 ir_expression(int op, const struct glsl_type *type, ir_rvalue *); 1052 ir_expression(int op, const struct glsl_type *type, 1059 ir_expression(int op, const struct glsl_type *type, 1386 void set_sampler(ir_dereference *sampler, const glsl_type *type); 1689 ir_constant(const struct glsl_type *type, const ir_constant_data *data); [all …]
|
D | glsl_symbol_table.cpp | 46 symbol_table_entry(const glsl_type *t) : v(0), f(0), t(t), u(0) {} in symbol_table_entry() 51 const glsl_type *t; 117 bool glsl_symbol_table::add_type(const char *name, const glsl_type *t) in add_type() 157 const glsl_type *glsl_symbol_table::get_type(const char *name) in get_type()
|
D | lower_if_to_cond_assign.cpp | 135 glsl_type::bool_type, in move_block_to_cond_assign() 144 glsl_type::bool_type, in move_block_to_cond_assign() 195 new(mem_ctx) ir_variable(glsl_type::bool_type, in visit_leave() 222 new(mem_ctx) ir_variable(glsl_type::bool_type, in visit_leave()
|
D | ir_validate.cpp | 107 if (ir->condition->type != glsl_type::bool_type) { in visit_enter() 314 assert(ir->type == glsl_type::bool_type); in visit_leave() 379 assert(ir->type == glsl_type::bool_type); in visit_leave() 414 assert(ir->type == glsl_type::bool_type); in visit_leave() 415 assert(ir->operands[0]->type == glsl_type::bool_type); in visit_leave() 416 assert(ir->operands[1]->type == glsl_type::bool_type); in visit_leave() 420 assert(ir->type == glsl_type::float_type); in visit_leave() 428 assert(ir->operands[0]->type == glsl_type::uint_type); in visit_leave() 430 assert(ir->operands[1]->type == glsl_type::uint_type); in visit_leave() 584 } else if (callee->return_type != glsl_type::void_type) { in visit_enter() [all …]
|
D | linker.h | 84 virtual void visit_field(const glsl_type *type, const char *name) = 0; 91 void recursion(const glsl_type *t, char **name, size_t name_length);
|
D | link_uniforms.cpp | 49 values_for_type(const glsl_type *type) in values_for_type() 63 const glsl_type *t = var->type; in process() 76 uniform_field_visitor::recursion(const glsl_type *t, char **name, in recursion() 155 virtual void visit_field(const glsl_type *type, const char *name) in visit_field() 259 virtual void visit_field(const glsl_type *type, const char *name) in visit_field() 296 const glsl_type *base_type; in visit_field() 494 const struct glsl_type *type = ubo_var->Type; in link_assign_uniform_block_offsets()
|
D | glsl_symbol_table.h | 99 bool add_type(const char *name, const glsl_type *t); 114 const glsl_type *get_type(const char *name);
|
D | lower_instructions.cpp | 161 const struct glsl_type *vec_type; in int_div_to_mul_rcp() 163 vec_type = glsl_type::get_instance(GLSL_TYPE_FLOAT, in int_div_to_mul_rcp() 174 vec_type = glsl_type::get_instance(GLSL_TYPE_FLOAT, in int_div_to_mul_rcp() 183 vec_type = glsl_type::get_instance(GLSL_TYPE_FLOAT, in int_div_to_mul_rcp()
|
D | link_uniform_initializers.cpp | 82 const char *name, const glsl_type *type, in set_uniform_initializer() 91 const glsl_type *field_type = type->fields.structure[i].type; in set_uniform_initializer() 100 const glsl_type *const element_type = type->fields.array; in set_uniform_initializer()
|
D | ir_reader.cpp | 43 const glsl_type *read_type(s_expression *); 127 const glsl_type * 135 const glsl_type *base_type = read_type(s_base_type); in read_type() 141 return glsl_type::get_array_instance(base_type, s_size->value()); in read_type() 150 const glsl_type *type = state->symbols->get_type(type_sym->value()); in read_type() 226 const glsl_type *return_type = read_type(type_expr); in read_function_sig() 379 const glsl_type *type = read_type(s_type); in read_declaration() 659 if (callee->return_type == glsl_type::void_type && return_deref) { in read_call() 662 } else if (callee->return_type != glsl_type::void_type && !return_deref) { in read_call() 685 const glsl_type *type = read_type(s_type); in read_expression() [all …]
|
/external/mesa3d/src/glsl/tests/ |
D | uniform_initializer_utils.cpp | 74 generate_data_element(void *mem_ctx, const glsl_type *type, in generate_data_element() 138 const glsl_type *const type = in generate_data() 139 glsl_type::get_instance(base_type, rows, columns); in generate_data() 152 const glsl_type *const element_type = in generate_array_data() 153 glsl_type::get_instance(base_type, rows, columns); in generate_array_data() 156 const glsl_type *const array_type = in generate_array_data() 157 glsl_type::get_array_instance(element_type, array_size); in generate_array_data() 189 const glsl_type *const element_type = val->array_elements[0]->type; in verify_data()
|
D | set_uniform_initializer_tests.cpp | 33 const char *name, const glsl_type *type, 103 const glsl_type *type, unsigned array_size) in establish_uniform_storage() 134 prog->UniformStorage[i].type = glsl_type::void_type; in establish_uniform_storage() 167 const glsl_type *const type = in non_array_test() 168 glsl_type::get_instance(base_type, rows, columns); in non_array_test() 315 const glsl_type *const element_type = in array_test() 316 glsl_type::get_instance(base_type, rows, columns); in array_test()
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_lower_texture_gradients.cpp | 60 static const glsl_type * 61 txs_type(const glsl_type *type) in txs_type() 83 return glsl_type::get_instance(GLSL_TYPE_INT, dims, 1); in txs_type() 95 const glsl_type *grad_type = ir->lod_info.grad.dPdx->type; in visit_leave()
|
D | brw_cubemap_normalize.cpp | 80 glsl_type::float_type, in visit_leave() 84 glsl_type::float_type, in visit_leave() 88 glsl_type::float_type, in visit_leave()
|
D | brw_vec4_visitor.cpp | 231 src_reg temp_src = src_reg(this, glsl_type::vec4_type); in emit_math1_gen6() 238 dst_reg temp_dst = dst_reg(this, glsl_type::vec4_type); in emit_math1_gen6() 294 expanded = src_reg(this, glsl_type::vec4_type); in emit_math2_gen6() 299 expanded = src_reg(this, glsl_type::vec4_type); in emit_math2_gen6() 308 dst_reg temp_dst = dst_reg(this, glsl_type::vec4_type); in emit_math2_gen6() 364 type_size(const struct glsl_type *type) in type_size() 423 src_reg::src_reg(class vec4_visitor *v, const struct glsl_type *type) in src_reg() 439 dst_reg::dst_reg(class vec4_visitor *v, const struct glsl_type *type) in dst_reg() 461 vec4_visitor::setup_uniform_values(int loc, const glsl_type *type) in setup_uniform_values() 467 const glsl_type *column = type->column_type(); in setup_uniform_values() [all …]
|
D | brw_fs_visitor.cpp | 147 const glsl_type *struct_type = ir->record->type; in visit() 224 if (ir->type != glsl_type::float_type) in try_emit_mad() 482 temp = fs_reg(this, glsl_type::int_type); in visit() 587 fs_reg packed_consts = fs_reg(this, glsl_type::float_type); in visit() 625 const glsl_type *type, bool predicated) in emit_assignment_writes() 867 const glsl_type *vec_type = in emit_texture_gen4() 868 glsl_type::get_instance(ir->type->base_type, 4, 1); in emit_texture_gen4() 869 dst = fs_reg(this, glsl_type::get_array_instance(vec_type, 2)); in emit_texture_gen4() 1256 fs_reg limit = fs_reg(this, glsl_type::float_type); in emit_texcoord() 1330 fs_reg dst = fs_reg(this, glsl_type::get_instance(ir->type->base_type, 4, 1)); in visit() [all …]
|