Home
last modified time | relevance | path

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

12345678910>>...12

/third_party/mesa3d/src/compiler/glsl/
Dbuiltin_functions.cpp1016 ir_variable *in_var(const glsl_type *type, const char *name);
1017 ir_variable *out_var(const glsl_type *type, const char *name);
1023 ir_constant *imm(const glsl_type *type, const ir_constant_data &);
1030 void do_atan(ir_factory &body, const glsl_type *type, ir_variable *res, operand y_over_x);
1043 …typedef ir_function_signature *(builtin_builder::*image_prototype_ctr)(const glsl_type *image_type,
1067 ir_function_signature *new_sig(const glsl_type *return_type,
1077 const glsl_type *return_type,
1078 const glsl_type *param_type);
1081 const glsl_type *return_type,
1082 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.ll400 bool { yylval->type = glsl_type::bool_type; return BASIC_TYPE_TOK; }
401 float { yylval->type = glsl_type::float_type; return BASIC_TYPE_TOK; }
402 int { yylval->type = glsl_type::int_type; return BASIC_TYPE_TOK; }
403 uint TYPE(130, 300, 130, 300, glsl_type::uint_type);
416 bvec2 { yylval->type = glsl_type::bvec2_type; return BASIC_TYPE_TOK; }
417 bvec3 { yylval->type = glsl_type::bvec3_type; return BASIC_TYPE_TOK; }
418 bvec4 { yylval->type = glsl_type::bvec4_type; return BASIC_TYPE_TOK; }
419 ivec2 { yylval->type = glsl_type::ivec2_type; return BASIC_TYPE_TOK; }
420 ivec3 { yylval->type = glsl_type::ivec3_type; return BASIC_TYPE_TOK; }
421 ivec4 { yylval->type = glsl_type::ivec4_type; return BASIC_TYPE_TOK; }
[all …]
Dbuiltin_variables.cpp363 void add_field(int slot, const glsl_type *type, int precision,
365 const glsl_type *construct_interface_instance() const;
381 per_vertex_accumulator::add_field(int slot, const glsl_type *type, in add_field()
409 const glsl_type *
412 return glsl_type::get_interface_instance(this->fields, this->num_fields, in construct_interface_instance()
436 const glsl_type *array(const glsl_type *base, unsigned elements) in array()
438 return glsl_type::get_array_instance(base, elements); in array()
441 const glsl_type *type(const char *name) in type()
446 ir_variable *add_input(int slot, const glsl_type *type, int precision, in add_input()
453 ir_variable *add_input(int slot, const glsl_type *type, const char *name, in add_input()
[all …]
Dbuiltin_int64.h5 new(mem_ctx) ir_function_signature(glsl_type::uvec4_type, avail); in udivmod64()
11 …ir_variable *const r000C = new(mem_ctx) ir_variable(glsl_type::uvec2_type, "n", ir_var_function_in… in udivmod64()
13 …ir_variable *const r000D = new(mem_ctx) ir_variable(glsl_type::uvec2_type, "d", ir_var_function_in… in udivmod64()
15 ir_variable *const r000E = new(mem_ctx) ir_variable(glsl_type::int_type, "i", ir_var_auto); in udivmod64()
17 … ir_variable *const r000F = new(mem_ctx) ir_variable(glsl_type::uint64_t_type, "n64", ir_var_auto); in udivmod64()
19 …ir_variable *const r0010 = new(mem_ctx) ir_variable(glsl_type::int_type, "log2_denom", ir_var_auto… in udivmod64()
21 ir_variable *const r0011 = new(mem_ctx) ir_variable(glsl_type::uvec2_type, "quot", ir_var_auto); in udivmod64()
23 body.emit(assign(r0011, ir_constant::zero(mem_ctx, glsl_type::uvec2_type), 0x03)); in udivmod64()
38 ir_variable *const r0017 = new(mem_ctx) ir_variable(glsl_type::int_type, "i", ir_var_auto); in udivmod64()
40 ir_variable *const r0018 = body.make_temp(glsl_type::int_type, "findMSB_retval"); in udivmod64()
[all …]
Dlinker.h83 link_calculate_matrix_stride(const glsl_type *matrix, bool row_major,
135 void process(ir_variable *var, const glsl_type *var_type,
153 void process(const glsl_type *type, const char *name,
168 virtual void visit_field(const glsl_type *type, const char *name,
169 bool row_major, const glsl_type *record_type,
173 virtual void enter_record(const glsl_type *type, const char *name,
176 virtual void leave_record(const glsl_type *type, const char *name,
191 void recursion(const glsl_type *t, char **name, size_t name_length,
192 bool row_major, const glsl_type *record_type,
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 …]
Dir.cpp34 this->type = glsl_type::error_type; in ir_rvalue()
186 ir_expression::ir_expression(int op, const struct glsl_type *type, in ir_expression()
269 this->type = glsl_type::get_instance(GLSL_TYPE_INT, in ir_expression()
282 this->type = glsl_type::get_instance(GLSL_TYPE_FLOAT, in ir_expression()
289 this->type = glsl_type::get_instance(GLSL_TYPE_FLOAT16, in ir_expression()
294 this->type = glsl_type::get_instance(GLSL_TYPE_INT16, in ir_expression()
300 this->type = glsl_type::get_instance(GLSL_TYPE_INT16, in ir_expression()
304 this->type = glsl_type::get_instance(GLSL_TYPE_INT, in ir_expression()
311 this->type = glsl_type::get_instance(GLSL_TYPE_UINT16, in ir_expression()
315 this->type = glsl_type::get_instance(GLSL_TYPE_UINT, in ir_expression()
[all …]
Dlink_uniforms.cpp44 program_resource_visitor::process(const glsl_type *type, const char *name, in process()
64 const glsl_type *t = in process()
70 program_resource_visitor::process(ir_variable *var, const glsl_type *var_type, in process()
82 const glsl_type *t = var_type; in process()
83 const glsl_type *t_without_array = t->without_array(); in process()
111 program_resource_visitor::recursion(const glsl_type *t, char **name, in recursion()
113 const glsl_type *record_type, in recursion()
222 program_resource_visitor::enter_record(const glsl_type *, const char *, bool, in enter_record() argument
228 program_resource_visitor::leave_record(const glsl_type *, const char *, bool, in leave_record() argument
244 link_calculate_matrix_stride(const glsl_type *matrix, bool row_major, in link_calculate_matrix_stride()
/third_party/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.cpp33 glsl_get_type_name(const glsl_type *type) in glsl_get_type_name()
39 glsl_array_size(const struct glsl_type *type) in glsl_array_size()
44 const glsl_type *
45 glsl_get_array_element(const glsl_type* type) in glsl_get_array_element()
54 const glsl_type *
55 glsl_without_array(const glsl_type *type) in glsl_without_array()
60 const glsl_type *
61 glsl_without_array_or_matrix(const glsl_type *type) in glsl_without_array_or_matrix()
69 const glsl_type *
70 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,
297 struct glsl_type { struct
321 glsl_type() : mem_ctx(NULL) in glsl_type() argument
371 const struct glsl_type *array; /**< Type of array elements. */ argument
382 static const glsl_type *const NAME##_type; argument
385 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 …]
/third_party/mesa3d/src/compiler/glsl/tests/
Dlower_int64_test.cpp37 const glsl_type *type,
81 create_variable(void *mem_ctx, const glsl_type *type) in create_variable()
91 create_expression(void *mem_ctx, const glsl_type *type) in create_expression()
98 check_expanded_source(const glsl_type *type, in check_expanded_source()
101 const glsl_type *const expanded_type = in check_expanded_source()
103 ? glsl_type::uvec2_type :glsl_type::ivec2_type; in check_expanded_source()
126 const glsl_type *type, in check_instructions()
129 const glsl_type *const expanded_type = in check_instructions()
131 ? glsl_type::uvec2_type : glsl_type::ivec2_type; in check_instructions()
194 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.cpp51 glsl_struct_field(glsl_type::vec(4), "v") in TEST_F()
54 const glsl_type *const iface = in TEST_F()
55 glsl_type::get_interface_instance(f, in TEST_F()
79 glsl_struct_field(glsl_type::vec(4), "v") in TEST_F()
82 const glsl_type *const iface = in TEST_F()
83 glsl_type::get_interface_instance(f, in TEST_F()
89 const glsl_type *const interface_array = in TEST_F()
90 glsl_type::get_array_instance(iface, 2); in TEST_F()
/third_party/mesa3d/src/intel/compiler/
Dtest_fs_saturate_propagation.cpp116 fs_reg dst0 = v->vgrf(glsl_type::float_type); in TEST_F()
117 fs_reg dst1 = v->vgrf(glsl_type::float_type); in TEST_F()
118 fs_reg src0 = v->vgrf(glsl_type::float_type); in TEST_F()
119 fs_reg src1 = v->vgrf(glsl_type::float_type); in TEST_F()
151 fs_reg dst0 = v->vgrf(glsl_type::float_type); in TEST_F()
152 fs_reg dst1 = v->vgrf(glsl_type::float_type); in TEST_F()
153 fs_reg dst2 = v->vgrf(glsl_type::float_type); in TEST_F()
154 fs_reg src0 = v->vgrf(glsl_type::float_type); in TEST_F()
155 fs_reg src1 = v->vgrf(glsl_type::float_type); in TEST_F()
189 fs_reg dst0 = v->vgrf(glsl_type::float_type); in TEST_F()
[all …]
Dtest_vec4_cmod_propagation.cpp158 dst_reg dest = dst_reg(v, glsl_type::float_type); in TEST_F()
159 src_reg src0 = src_reg(v, glsl_type::float_type); in TEST_F()
160 src_reg src1 = src_reg(v, glsl_type::float_type); in TEST_F()
194 dst_reg dest = dst_reg(v, glsl_type::float_type); in TEST_F()
195 src_reg src0 = src_reg(v, glsl_type::float_type); in TEST_F()
196 src_reg src1 = src_reg(v, glsl_type::float_type); in TEST_F()
231 dst_reg dest = dst_reg(v, glsl_type::int_type); in TEST_F()
232 src_reg src0 = src_reg(v, glsl_type::float_type); in TEST_F()
267 dst_reg dest = dst_reg(v, glsl_type::uint_type); in TEST_F()
268 src_reg src0 = src_reg(v, glsl_type::uint_type); in TEST_F()
[all …]
Dtest_fs_cmod_propagation.cpp126 fs_reg dest = v->vgrf(glsl_type::float_type); in TEST_F()
127 fs_reg src0 = v->vgrf(glsl_type::float_type); in TEST_F()
128 fs_reg src1 = v->vgrf(glsl_type::float_type); in TEST_F()
158 fs_reg dest = v->vgrf(glsl_type::float_type); in TEST_F()
159 fs_reg src0 = v->vgrf(glsl_type::float_type); in TEST_F()
160 fs_reg src1 = v->vgrf(glsl_type::float_type); in TEST_F()
192 fs_reg dest = v->vgrf(glsl_type::float_type); in TEST_F()
193 fs_reg src0 = v->vgrf(glsl_type::float_type); in TEST_F()
194 fs_reg src1 = v->vgrf(glsl_type::float_type); in TEST_F()
225 fs_reg dest = v->vgrf(glsl_type::uint_type); in TEST_F()
[all …]
Dtest_vec4_register_coalesce.cpp140 src_reg something = src_reg(v, glsl_type::float_type); in TEST_F()
141 dst_reg temp = dst_reg(v, glsl_type::float_type); in TEST_F()
159 src_reg something = src_reg(v, glsl_type::float_type); in TEST_F()
160 dst_reg temp = dst_reg(v, glsl_type::vec4_type); in TEST_F()
185 src_reg some_src_1 = src_reg(v, glsl_type::vec4_type); in TEST_F()
186 src_reg some_src_2 = src_reg(v, glsl_type::vec4_type); in TEST_F()
193 dst_reg temp = dst_reg(v, glsl_type::float_type); in TEST_F()
206 src_reg some_src_1 = src_reg(v, glsl_type::vec4_type); in TEST_F()
207 src_reg some_src_2 = src_reg(v, glsl_type::vec4_type); in TEST_F()
210 dst_reg to = dst_reg(v, glsl_type::vec4_type); in TEST_F()
[all …]
Dtest_fs_scoreboard.cpp144 g[i] = v->vgrf(glsl_type::int_type); in TEST_F()
146 fs_reg x = v->vgrf(glsl_type::int_type); in TEST_F()
147 fs_reg y = v->vgrf(glsl_type::int_type); in TEST_F()
171 g[i] = v->vgrf(glsl_type::int_type); in TEST_F()
173 fs_reg x = v->vgrf(glsl_type::int_type); in TEST_F()
197 g[i] = v->vgrf(glsl_type::int_type); in TEST_F()
199 fs_reg x = v->vgrf(glsl_type::int_type); in TEST_F()
200 fs_reg y = v->vgrf(glsl_type::int_type); in TEST_F()
224 g[i] = v->vgrf(glsl_type::int_type); in TEST_F()
230 fs_reg x = v->vgrf(glsl_type::int_type); in TEST_F()
[all …]
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 …]
Dgfx6_gs_visitor.cpp66 glsl_type::uint_type, in emit_prolog()
69 this->vertex_output_offset = src_reg(this, glsl_type::uint_type); in emit_prolog()
83 this->temp = src_reg(this, glsl_type::uint_type); in emit_prolog()
91 this->first_vertex = src_reg(this, glsl_type::uint_type); in emit_prolog()
97 this->prim_count = src_reg(this, glsl_type::uint_type); in emit_prolog()
102 this->destination_indices = src_reg(this, glsl_type::uvec4_type); in emit_prolog()
104 this->sol_prim_written = src_reg(this, glsl_type::uint_type); in emit_prolog()
106 this->svbi = src_reg(this, glsl_type::uvec4_type); in emit_prolog()
108 this->max_svbi = src_reg(this, glsl_type::uvec4_type); in emit_prolog()
163 dst_reg tmp = dst_reg(src_reg(this, glsl_type::uvec4_type)); in gs_emit_vertex()
[all …]

12345678910>>...12