Home
last modified time | relevance | path

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

12345678910

/external/mesa3d/src/compiler/
Dnir_types.h41 struct glsl_type;
44 const char *glsl_get_type_name(const struct glsl_type *type);
46 const struct glsl_type *glsl_get_struct_field(const struct glsl_type *type,
49 int glsl_get_struct_field_offset(const struct glsl_type *type,
53 glsl_get_struct_field_data(const struct glsl_type *type, unsigned index);
56 glsl_get_internal_ifc_packing(const struct glsl_type *type,
59 glsl_get_ifc_packing(const struct glsl_type *type);
61 unsigned glsl_get_std140_base_alignment(const struct glsl_type *type,
63 unsigned glsl_get_std140_size(const struct glsl_type *type, bool row_major);
64 unsigned glsl_get_std430_base_alignment(const struct glsl_type *type,
[all …]
Dnir_types.cpp32 glsl_get_type_name(const glsl_type *type) in glsl_get_type_name()
38 glsl_array_size(const struct glsl_type *type) in glsl_array_size()
43 const glsl_type *
44 glsl_get_array_element(const glsl_type* type) in glsl_get_array_element()
53 const glsl_type *
54 glsl_without_array(const glsl_type *type) in glsl_without_array()
59 const glsl_type *
60 glsl_without_array_or_matrix(const glsl_type *type) in glsl_without_array_or_matrix()
68 const glsl_type *
69 glsl_get_bare_type(const glsl_type *type) in glsl_get_bare_type()
[all …]
Dglsl_types.h42 struct glsl_type;
61 glsl_print_type(FILE *f, const struct glsl_type *t);
63 void encode_type_to_blob(struct blob *blob, const struct glsl_type *type);
65 const struct glsl_type *decode_type_from_blob(struct blob_reader *blob);
67 typedef void (*glsl_type_size_align_func)(const struct glsl_type *type,
293 struct glsl_type { struct
317 glsl_type() : mem_ctx(NULL) in glsl_type() argument
367 const struct glsl_type *array; /**< Type of array elements. */ argument
378 static const glsl_type *const NAME##_type; argument
381 static const glsl_type *const struct_##NAME##_type;
[all …]
Dglsl_types.cpp32 mtx_t glsl_type::hash_mutex = _MTX_INITIALIZER_NP;
33 hash_table *glsl_type::explicit_matrix_types = NULL;
34 hash_table *glsl_type::array_types = NULL;
35 hash_table *glsl_type::struct_types = NULL;
36 hash_table *glsl_type::interface_types = NULL;
37 hash_table *glsl_type::function_types = NULL;
38 hash_table *glsl_type::subroutine_types = NULL;
46 glsl_type::glsl_type(GLenum gl_type, in glsl_type() function in glsl_type
66 ASSERT_BITFIELD_SIZE(glsl_type, base_type, GLSL_TYPE_ERROR); in glsl_type()
67 ASSERT_BITFIELD_SIZE(glsl_type, sampled_type, GLSL_TYPE_ERROR); in glsl_type()
[all …]
/external/mesa3d/src/compiler/glsl/
Dbuiltin_functions.cpp912 ir_variable *in_var(const glsl_type *type, const char *name);
913 ir_variable *out_var(const glsl_type *type, const char *name);
919 ir_constant *imm(const glsl_type *type, const ir_constant_data &);
925 void do_atan(ir_factory &body, const glsl_type *type, ir_variable *res, operand y_over_x);
938 …typedef ir_function_signature *(builtin_builder::*image_prototype_ctr)(const glsl_type *image_type,
962 ir_function_signature *new_sig(const glsl_type *return_type,
972 const glsl_type *return_type,
973 const glsl_type *param_type);
976 const glsl_type *return_type,
977 const glsl_type *param0_type,
[all …]
Dbuiltin_types.cpp50 const glsl_type glsl_type::_struct_##NAME##_type = \
51 glsl_type(NAME##_fields, ARRAY_SIZE(NAME##_fields), #NAME); \
52 const glsl_type *const glsl_type::struct_##NAME##_type = \
53 &glsl_type::_struct_##NAME##_type;
56 glsl_struct_field(glsl_type::float_type, GLSL_PRECISION_HIGH, "near"),
57 glsl_struct_field(glsl_type::float_type, GLSL_PRECISION_HIGH, "far"),
58 glsl_struct_field(glsl_type::float_type, GLSL_PRECISION_HIGH, "diff"),
62 glsl_struct_field(glsl_type::float_type, "size"),
63 glsl_struct_field(glsl_type::float_type, "sizeMin"),
64 glsl_struct_field(glsl_type::float_type, "sizeMax"),
[all …]
Dlower_packing_builtins.cpp210 assert(uvec2_rval->type == glsl_type::uvec2_type); in pack_uvec2_to_uint()
213 ir_variable *u = factory.make_temp(glsl_type::uvec2_type, in pack_uvec2_to_uint()
239 assert(uvec4_rval->type == glsl_type::uvec4_type); in pack_uvec4_to_uint()
241 ir_variable *u = factory.make_temp(glsl_type::uvec4_type, in pack_uvec4_to_uint()
276 assert(uint_rval->type == glsl_type::uint_type); in unpack_uint_to_uvec2()
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()
305 assert(uint_rval->type == glsl_type::uint_type); in unpack_uint_to_ivec2()
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()
[all …]
Dglsl_lexer.ll398 bool { yylval->type = glsl_type::bool_type; return BASIC_TYPE_TOK; }
399 float { yylval->type = glsl_type::float_type; return BASIC_TYPE_TOK; }
400 int { yylval->type = glsl_type::int_type; return BASIC_TYPE_TOK; }
401 uint TYPE(130, 300, 130, 300, glsl_type::uint_type);
414 bvec2 { yylval->type = glsl_type::bvec2_type; return BASIC_TYPE_TOK; }
415 bvec3 { yylval->type = glsl_type::bvec3_type; return BASIC_TYPE_TOK; }
416 bvec4 { yylval->type = glsl_type::bvec4_type; return BASIC_TYPE_TOK; }
417 ivec2 { yylval->type = glsl_type::ivec2_type; return BASIC_TYPE_TOK; }
418 ivec3 { yylval->type = glsl_type::ivec3_type; return BASIC_TYPE_TOK; }
419 ivec4 { yylval->type = glsl_type::ivec4_type; return BASIC_TYPE_TOK; }
[all …]
Dbuiltin_variables.cpp317 void add_field(int slot, const glsl_type *type, int precision,
319 const glsl_type *construct_interface_instance() const;
335 per_vertex_accumulator::add_field(int slot, const glsl_type *type, in add_field()
363 const glsl_type *
366 return glsl_type::get_interface_instance(this->fields, this->num_fields, in construct_interface_instance()
390 const glsl_type *array(const glsl_type *base, unsigned elements) in array()
392 return glsl_type::get_array_instance(base, elements); in array()
395 const glsl_type *type(const char *name) in type()
400 ir_variable *add_input(int slot, const glsl_type *type, int precision, in add_input()
407 ir_variable *add_input(int slot, const glsl_type *type, const char *name, in add_input()
[all …]
Dlinker.h103 link_calculate_matrix_stride(const glsl_type *matrix, bool row_major,
155 void process(ir_variable *var, const glsl_type *var_type,
173 void process(const glsl_type *type, const char *name,
188 virtual void visit_field(const glsl_type *type, const char *name,
189 bool row_major, const glsl_type *record_type,
193 virtual void enter_record(const glsl_type *type, const char *name,
196 virtual void leave_record(const glsl_type *type, const char *name,
211 void recursion(const glsl_type *t, char **name, size_t name_length,
212 bool row_major, const glsl_type *record_type,
Dbuiltin_int64.h5 new(mem_ctx) ir_function_signature(glsl_type::uvec2_type, avail); in umul64()
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()
35 new(mem_ctx) ir_function_signature(glsl_type::ivec2_type, avail); in sign64()
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()
61 new(mem_ctx) ir_function_signature(glsl_type::uvec4_type, avail); in udivmod64()
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()
[all …]
Dglsl_symbol_table.cpp32 bool add_interface(const glsl_type *i, enum ir_variable_mode mode) in add_interface()
34 const glsl_type **dest; in add_interface()
62 const glsl_type *get_interface(enum ir_variable_mode mode) in get_interface()
83 symbol_table_entry(const glsl_type *t) : in symbol_table_entry()
85 symbol_table_entry(const glsl_type *t, enum ir_variable_mode mode) : in symbol_table_entry()
96 const glsl_type *t;
97 const glsl_type *ibu;
98 const glsl_type *iss;
99 const glsl_type *ibi;
100 const glsl_type *ibo;
[all …]
Dir_validate.cpp191 if (ir->condition && ir->condition->type != glsl_type::bool_type) { in visit_enter()
205 if (ir->condition->type != glsl_type::bool_type) { in visit_enter()
529 assert(ir->type == glsl_type::uint_type); in visit_leave()
530 assert(ir->operands[0]->type == glsl_type::vec2_type); in visit_leave()
535 assert(ir->type == glsl_type::uint_type); in visit_leave()
536 assert(ir->operands[0]->type == glsl_type::vec4_type); in visit_leave()
540 assert(ir->type == glsl_type::double_type); in visit_leave()
541 assert(ir->operands[0]->type == glsl_type::uvec2_type); in visit_leave()
545 assert(ir->type == glsl_type::int64_t_type); in visit_leave()
546 assert(ir->operands[0]->type == glsl_type::ivec2_type); in visit_leave()
[all …]
Dlower_ubo_reference.cpp68 const glsl_type **matrix_type,
71 ir_expression *ubo_load(void *mem_ctx, const struct glsl_type *type,
73 ir_call *ssbo_load(void *mem_ctx, const struct glsl_type *type,
93 const glsl_type *type, ir_rvalue *offset,
213 if (array_index->type != glsl_type::uint_type) in interface_field_name()
254 clamp_to_array_bounds(void *mem_ctx, ir_rvalue *index, const glsl_type *type) in clamp_to_array_bounds()
280 const glsl_type **matrix_type, in setup_for_load_or_store()
352 const glsl_type *matrix_type; in handle_rvalue()
375 const glsl_type *type = (*rvalue)->type; in handle_rvalue()
381 ir_variable *load_offset = new(mem_ctx) ir_variable(glsl_type::uint_type, in handle_rvalue()
[all …]
/external/mesa3d/src/compiler/glsl/tests/
Dlower_int64_test.cpp38 const glsl_type *type,
82 create_variable(void *mem_ctx, const glsl_type *type) in create_variable()
92 create_expression(void *mem_ctx, const glsl_type *type) in create_expression()
99 check_expanded_source(const glsl_type *type, in check_expanded_source()
102 const glsl_type *const expanded_type = in check_expanded_source()
104 ? glsl_type::uvec2_type :glsl_type::ivec2_type; in check_expanded_source()
127 const glsl_type *type, in check_instructions()
130 const glsl_type *const expanded_type = in check_instructions()
132 ? glsl_type::uvec2_type : glsl_type::ivec2_type; in check_instructions()
195 const glsl_type *const type = glsl_type::uint64_t_type; in TEST_F()
[all …]
Darray_refcount_test.cpp46 const glsl_type *array_3_of_array_4_of_array_5_of_vec4;
54 const glsl_type *array_3_of_int;
104 const glsl_type *const array_5_of_vec4 = in SetUp()
105 glsl_type::get_array_instance(glsl_type::vec4_type, 5); in SetUp()
106 const glsl_type *const array_4_of_array_5_of_vec4 = in SetUp()
107 glsl_type::get_array_instance(array_5_of_vec4, 4); in SetUp()
109 glsl_type::get_array_instance(array_4_of_array_5_of_vec4, 3); in SetUp()
111 array_3_of_int = glsl_type::get_array_instance(glsl_type::int_type, 3); in SetUp()
213 new(mem_ctx) ir_variable(glsl_type::int_type, "a", ir_var_auto); in TEST_F()
227 new(mem_ctx) ir_variable(glsl_type::vec4_type, "a", ir_var_auto); in TEST_F()
[all …]
Dgeneral_ir_test.cpp52 glsl_struct_field(glsl_type::vec(4), "v") in TEST_F()
55 const glsl_type *const iface = in TEST_F()
56 glsl_type::get_interface_instance(f, in TEST_F()
78 glsl_struct_field(glsl_type::vec(4), "v") in TEST_F()
81 const glsl_type *const iface = in TEST_F()
82 glsl_type::get_interface_instance(f, in TEST_F()
88 const glsl_type *const interface_array = in TEST_F()
89 glsl_type::get_array_instance(iface, 2); in TEST_F()
Dvaryings_test.cpp57 char *interface_field_name(const glsl_type *iface, unsigned field = 0) in interface_field_name()
70 const glsl_type *simple_interface;
92 glsl_struct_field(glsl_type::vec(4), "v") in SetUp()
96 glsl_type::get_interface_instance(f, in SetUp()
120 new(mem_ctx) ir_variable(glsl_type::vec(4), in TEST_F()
141 const glsl_type *const array_8_of_float = in TEST_F()
142 glsl_type::get_array_instance(glsl_type::vec(1), 8); in TEST_F()
168 const glsl_type *const array_8_of_float = in TEST_F()
169 glsl_type::get_array_instance(glsl_type::vec(1), 8); in TEST_F()
221 new(mem_ctx) ir_variable(glsl_type::vec(4), in TEST_F()
[all …]
/external/mesa3d/src/intel/compiler/
Dtest_fs_saturate_propagation.cpp103 fs_reg dst0 = v->vgrf(glsl_type::float_type); in TEST_F()
104 fs_reg dst1 = v->vgrf(glsl_type::float_type); in TEST_F()
105 fs_reg src0 = v->vgrf(glsl_type::float_type); in TEST_F()
106 fs_reg src1 = v->vgrf(glsl_type::float_type); in TEST_F()
138 fs_reg dst0 = v->vgrf(glsl_type::float_type); in TEST_F()
139 fs_reg dst1 = v->vgrf(glsl_type::float_type); in TEST_F()
140 fs_reg dst2 = v->vgrf(glsl_type::float_type); in TEST_F()
141 fs_reg src0 = v->vgrf(glsl_type::float_type); in TEST_F()
142 fs_reg src1 = v->vgrf(glsl_type::float_type); in TEST_F()
176 fs_reg dst0 = v->vgrf(glsl_type::float_type); in TEST_F()
[all …]
Dtest_fs_cmod_propagation.cpp113 fs_reg dest = v->vgrf(glsl_type::float_type); in TEST_F()
114 fs_reg src0 = v->vgrf(glsl_type::float_type); in TEST_F()
115 fs_reg src1 = v->vgrf(glsl_type::float_type); in TEST_F()
145 fs_reg dest = v->vgrf(glsl_type::float_type); in TEST_F()
146 fs_reg src0 = v->vgrf(glsl_type::float_type); in TEST_F()
147 fs_reg src1 = v->vgrf(glsl_type::float_type); in TEST_F()
179 fs_reg dest = v->vgrf(glsl_type::float_type); in TEST_F()
180 fs_reg src0 = v->vgrf(glsl_type::float_type); in TEST_F()
181 fs_reg src1 = v->vgrf(glsl_type::float_type); in TEST_F()
212 fs_reg dest = v->vgrf(glsl_type::uint_type); in TEST_F()
[all …]
Dtest_vec4_cmod_propagation.cpp146 dst_reg dest = dst_reg(v, glsl_type::float_type); in TEST_F()
147 src_reg src0 = src_reg(v, glsl_type::float_type); in TEST_F()
148 src_reg src1 = src_reg(v, glsl_type::float_type); in TEST_F()
182 dst_reg dest = dst_reg(v, glsl_type::float_type); in TEST_F()
183 src_reg src0 = src_reg(v, glsl_type::float_type); in TEST_F()
184 src_reg src1 = src_reg(v, glsl_type::float_type); in TEST_F()
219 dst_reg dest = dst_reg(v, glsl_type::int_type); in TEST_F()
220 src_reg src0 = src_reg(v, glsl_type::float_type); in TEST_F()
255 dst_reg dest = dst_reg(v, glsl_type::uint_type); in TEST_F()
256 src_reg src0 = src_reg(v, glsl_type::uint_type); in TEST_F()
[all …]
Dtest_vec4_register_coalesce.cpp129 src_reg something = src_reg(v, glsl_type::float_type); in TEST_F()
130 dst_reg temp = dst_reg(v, glsl_type::float_type); in TEST_F()
148 src_reg something = src_reg(v, glsl_type::float_type); in TEST_F()
149 dst_reg temp = dst_reg(v, glsl_type::vec4_type); in TEST_F()
174 src_reg some_src_1 = src_reg(v, glsl_type::vec4_type); in TEST_F()
175 src_reg some_src_2 = src_reg(v, glsl_type::vec4_type); in TEST_F()
182 dst_reg temp = dst_reg(v, glsl_type::float_type); in TEST_F()
195 src_reg some_src_1 = src_reg(v, glsl_type::vec4_type); in TEST_F()
196 src_reg some_src_2 = src_reg(v, glsl_type::vec4_type); in TEST_F()
199 dst_reg to = dst_reg(v, glsl_type::vec4_type); in TEST_F()
[all …]
Dtest_fs_scoreboard.cpp125 g[i] = v->vgrf(glsl_type::int_type); in TEST_F()
127 fs_reg x = v->vgrf(glsl_type::int_type); in TEST_F()
128 fs_reg y = v->vgrf(glsl_type::int_type); in TEST_F()
152 g[i] = v->vgrf(glsl_type::int_type); in TEST_F()
154 fs_reg x = v->vgrf(glsl_type::int_type); in TEST_F()
179 g[i] = v->vgrf(glsl_type::int_type); in TEST_F()
181 fs_reg x = v->vgrf(glsl_type::int_type); in TEST_F()
182 fs_reg y = v->vgrf(glsl_type::int_type); in TEST_F()
207 g[i] = v->vgrf(glsl_type::int_type); in TEST_F()
213 fs_reg x = v->vgrf(glsl_type::int_type); in TEST_F()
[all …]
Dbrw_vec4_tes.cpp86 input_read_header = src_reg(this, glsl_type::uvec4_type); in emit_prolog()
134 swizzle(src_reg(ATTR, 1, glsl_type::vec4_type), in nir_emit_intrinsic()
138 swizzle(src_reg(ATTR, 1, glsl_type::vec4_type), in nir_emit_intrinsic()
145 swizzle(src_reg(ATTR, 0, glsl_type::vec4_type), in nir_emit_intrinsic()
149 src_reg(ATTR, 1, glsl_type::float_type))); in nir_emit_intrinsic()
166 src_reg clamped_indirect_offset = src_reg(this, glsl_type::uvec4_type); in nir_emit_intrinsic()
176 header = src_reg(this, glsl_type::uvec4_type); in nir_emit_intrinsic()
185 src_reg src = src_reg(ATTR, imm_offset, glsl_type::ivec4_type); in nir_emit_intrinsic()
197 dst_reg temp(this, glsl_type::ivec4_type); in nir_emit_intrinsic()
Dbrw_vec4_visitor.cpp302 dst_reg expanded = dst_reg(this, glsl_type::vec4_type); in fix_3src_operand()
328 dst_reg expanded = dst_reg(this, glsl_type::vec4_type); in fix_math_operand()
344 math->dst = dst_reg(this, glsl_type::vec4_type); in emit_math()
392 dst_reg tmp_dst(this, glsl_type::uvec2_type); in emit_pack_half_2x16()
457 dst_reg tmp_dst(this, glsl_type::uvec2_type); in emit_unpack_half_2x16()
478 dst_reg shift(this, glsl_type::uvec4_type); in emit_unpack_unorm_4x8()
481 dst_reg shifted(this, glsl_type::uvec4_type); in emit_unpack_unorm_4x8()
486 dst_reg f(this, glsl_type::vec4_type); in emit_unpack_unorm_4x8()
500 dst_reg shift(this, glsl_type::uvec4_type); in emit_unpack_snorm_4x8()
503 dst_reg shifted(this, glsl_type::uvec4_type); in emit_unpack_snorm_4x8()
[all …]

12345678910