/third_party/mesa3d/src/compiler/glsl/ |
H A D | builtin_functions.cpp | 1016 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_typ [all...] |
H A D | builtin_types.cpp | 27 * The glsl_type class has static members to represent all the built-in types 28 * (such as the glsl_type::_float_type flyweight) as well as convenience pointer 29 * accessors (such as glsl_type::float_type). Those global variables are 43 * Declarations of type flyweights (glsl_type::_foo_type) and 44 * convenience pointers (glsl_type::foo_type). 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 [all...] |
H A 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 in unpack_uint_to_ivec2() [all...] |
H A D | linker.h | 83 link_calculate_matrix_stride(const glsl_type *matrix, bool row_major, 125 * \param var_type The glsl_type reference of the variable 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_typ [all...] |
H A 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 *ib [all...] |
H A D | builtin_int64.h | 5 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 in udivmod64() [all...] |
H A 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 in visit_leave() [all...] |
H A D | builtin_variables.cpp | 363 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 *typ [all...] |
H A D | ir.cpp | 34 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 in ir_expression() [all...] |
H A D | link_uniforms.cpp | 44 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() 228 program_resource_visitor::leave_record(const glsl_type *, const char *, bool, in leave_record() 244 link_calculate_matrix_stride(const glsl_type *matri [all...] |
/third_party/mesa3d/src/compiler/ |
H A 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 *typ [all...] |
H A D | nir_types.cpp | 33 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 *typ [all...] |
H A 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, 72 * and 2 so that they will fit in the 2 bits of glsl_type::sampled_type. 297 struct glsl_type { struct 321 glsl_type() : mem_ctx(NULL) in glsl_type() function 371 const struct glsl_type *array; /**< Type of array elements. */ 382 static const glsl_type *cons [all...] |
H A D | glsl_types.cpp | 32 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 60 * glsl_type in glsl_type() 84 glsl_type::glsl_type(GLenum gl_type, glsl_base_type base_type, glsl_type() function in glsl_type 105 glsl_type::glsl_type(const glsl_struct_field *fields, unsigned num_fields, glsl_type() function in glsl_type 137 glsl_type::glsl_type(const glsl_struct_field *fields, unsigned num_fields, glsl_type() function in glsl_type 164 glsl_type::glsl_type(const glsl_type *return_type, glsl_type() function in glsl_type 196 glsl_type::glsl_type(const char *subroutine_name) : glsl_type() function in glsl_type 574 glsl_type::glsl_type(const glsl_type *array, unsigned length, glsl_type() function in glsl_type [all...] |
/third_party/mesa3d/src/compiler/glsl/tests/ |
H A D | lower_int64_test.cpp | 37 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 in check_instructions() [all...] |
H A D | array_refcount_test.cpp | 41 * glsl_type for a vec4[3][4][5]. 46 const glsl_type *array_3_of_array_4_of_array_5_of_vec4; 49 * glsl_type for a int[3]. 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 in SetUp() [all...] |
H A D | general_ir_test.cpp | 51 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/ |
H A 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 in TEST_F() [all...] |
H A 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 in TEST_F() [all...] |
H A 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 in TEST_F() [all...] |
H A D | test_fs_scoreboard.cpp | 144 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 in TEST_F() [all...] |
H A 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 in TEST_F() [all...] |
H A 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 in emit_unpack_snorm_4x8() [all...] |
H A D | brw_vec4_tes.cpp | 86 input_read_header = src_reg(this, glsl_type::uvec4_type); in emit_prolog() 128 swizzle(src_reg(ATTR, 1, glsl_type::vec4_type), in nir_emit_intrinsic() 132 swizzle(src_reg(ATTR, 1, glsl_type::vec4_type), in nir_emit_intrinsic() 139 swizzle(src_reg(ATTR, 0, glsl_type::vec4_type), in nir_emit_intrinsic() 143 src_reg(ATTR, 1, glsl_type::float_type))); in nir_emit_intrinsic() 160 src_reg clamped_indirect_offset = src_reg(this, glsl_type::uvec4_type); in nir_emit_intrinsic() 170 header = src_reg(this, glsl_type::uvec4_type); in nir_emit_intrinsic() 179 src_reg src = src_reg(ATTR, imm_offset, glsl_type::ivec4_type); in nir_emit_intrinsic() 191 dst_reg temp(this, glsl_type::ivec4_type); in nir_emit_intrinsic()
|
H A D | gfx6_gs_visitor.cpp | 66 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 in gs_emit_vertex() [all...] |