/third_party/mesa3d/src/compiler/ |
D | nir_types.h | 41 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 …]
|
D | nir_types.cpp | 32 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 …]
|
D | glsl_types.h | 42 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() function 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 …]
|
D | glsl_types.cpp | 33 mtx_t glsl_type::hash_mutex = _MTX_INITIALIZER_NP; 34 hash_table *glsl_type::explicit_matrix_types = NULL; 35 hash_table *glsl_type::array_types = NULL; 36 hash_table *glsl_type::struct_types = NULL; 37 hash_table *glsl_type::interface_types = NULL; 38 hash_table *glsl_type::function_types = NULL; 39 hash_table *glsl_type::subroutine_types = NULL; 47 glsl_type::glsl_type(GLenum gl_type, in glsl_type() function in glsl_type 67 ASSERT_BITFIELD_SIZE(glsl_type, base_type, GLSL_TYPE_ERROR); in glsl_type() 68 ASSERT_BITFIELD_SIZE(glsl_type, sampled_type, GLSL_TYPE_ERROR); in glsl_type() [all …]
|
/third_party/mesa3d/src/compiler/glsl/ |
D | builtin_functions.cpp | 933 ir_variable *in_var(const glsl_type *type, const char *name); 934 ir_variable *out_var(const glsl_type *type, const char *name); 940 ir_constant *imm(const glsl_type *type, const ir_constant_data &); 946 void do_atan(ir_factory &body, const glsl_type *type, ir_variable *res, operand y_over_x); 959 …typedef ir_function_signature *(builtin_builder::*image_prototype_ctr)(const glsl_type *image_type, 983 ir_function_signature *new_sig(const glsl_type *return_type, 993 const glsl_type *return_type, 994 const glsl_type *param_type); 997 const glsl_type *return_type, 998 const glsl_type *param0_type, [all …]
|
D | builtin_types.cpp | 50 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 …]
|
D | lower_packing_builtins.cpp | 210 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 …]
|
D | glsl_lexer.ll | 400 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 …]
|
D | linker.h | 103 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,
|
D | builtin_variables.cpp | 362 void add_field(int slot, const glsl_type *type, int precision, 364 const glsl_type *construct_interface_instance() const; 380 per_vertex_accumulator::add_field(int slot, const glsl_type *type, in add_field() 408 const glsl_type * 411 return glsl_type::get_interface_instance(this->fields, this->num_fields, in construct_interface_instance() 435 const glsl_type *array(const glsl_type *base, unsigned elements) in array() 437 return glsl_type::get_array_instance(base, elements); in array() 440 const glsl_type *type(const char *name) in type() 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() [all …]
|
D | builtin_int64.h | 5 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 …]
|
D | glsl_symbol_table.cpp | 32 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 …]
|
D | ir_validate.cpp | 191 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 …]
|
D | glsl_symbol_table.h | 34 struct glsl_type; 68 bool add_type(const char *name, const glsl_type *t); 70 bool add_interface(const char *name, const glsl_type *i, 85 const glsl_type *get_type(const char *name); 87 const glsl_type *get_interface(const char *name,
|
/third_party/mesa3d/src/compiler/glsl/tests/ |
D | lower_int64_test.cpp | 38 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 …]
|
D | array_refcount_test.cpp | 46 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 …]
|
D | general_ir_test.cpp | 52 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() 80 glsl_struct_field(glsl_type::vec(4), "v") in TEST_F() 83 const glsl_type *const iface = in TEST_F() 84 glsl_type::get_interface_instance(f, in TEST_F() 90 const glsl_type *const interface_array = in TEST_F() 91 glsl_type::get_array_instance(iface, 2); in TEST_F()
|
D | varyings_test.cpp | 57 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 …]
|
/third_party/mesa3d/src/intel/compiler/ |
D | test_fs_saturate_propagation.cpp | 116 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 …]
|
D | test_vec4_cmod_propagation.cpp | 158 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 …]
|
D | test_fs_cmod_propagation.cpp | 126 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 …]
|
D | test_vec4_register_coalesce.cpp | 140 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 …]
|
D | test_fs_scoreboard.cpp | 136 g[i] = v->vgrf(glsl_type::int_type); in TEST_F() 138 fs_reg x = v->vgrf(glsl_type::int_type); in TEST_F() 139 fs_reg y = v->vgrf(glsl_type::int_type); in TEST_F() 163 g[i] = v->vgrf(glsl_type::int_type); in TEST_F() 165 fs_reg x = v->vgrf(glsl_type::int_type); in TEST_F() 190 g[i] = v->vgrf(glsl_type::int_type); in TEST_F() 192 fs_reg x = v->vgrf(glsl_type::int_type); in TEST_F() 193 fs_reg y = v->vgrf(glsl_type::int_type); in TEST_F() 218 g[i] = v->vgrf(glsl_type::int_type); in TEST_F() 224 fs_reg x = v->vgrf(glsl_type::int_type); in TEST_F() [all …]
|
D | brw_vec4_tes.cpp | 87 input_read_header = src_reg(this, glsl_type::uvec4_type); in emit_prolog() 135 swizzle(src_reg(ATTR, 1, glsl_type::vec4_type), in nir_emit_intrinsic() 139 swizzle(src_reg(ATTR, 1, glsl_type::vec4_type), in nir_emit_intrinsic() 146 swizzle(src_reg(ATTR, 0, glsl_type::vec4_type), in nir_emit_intrinsic() 150 src_reg(ATTR, 1, glsl_type::float_type))); in nir_emit_intrinsic() 167 src_reg clamped_indirect_offset = src_reg(this, glsl_type::uvec4_type); in nir_emit_intrinsic() 177 header = src_reg(this, glsl_type::uvec4_type); in nir_emit_intrinsic() 186 src_reg src = src_reg(ATTR, imm_offset, glsl_type::ivec4_type); in nir_emit_intrinsic() 198 dst_reg temp(this, glsl_type::ivec4_type); in nir_emit_intrinsic()
|
D | brw_vec4_visitor.cpp | 302 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 …]
|