Home
last modified time | relevance | path

Searched refs:base_type (Results 1 - 25 of 138) sorted by relevance

123456

/third_party/mesa3d/src/compiler/
H A Dglsl_types.h168 glsl_base_type_get_bit_size(const enum glsl_base_type base_type) in glsl_base_type_get_bit_size() argument
170 switch (base_type) { in glsl_base_type_get_bit_size()
299 glsl_base_type base_type:8; member
452 static const glsl_type *get_instance(unsigned base_type, unsigned rows,
728 && (base_type >= GLSL_TYPE_UINT) in is_scalar()
729 && (base_type <= GLSL_TYPE_IMAGE); in is_scalar()
739 && (base_type >= GLSL_TYPE_UINT) in is_vector()
740 && (base_type <= GLSL_TYPE_BOOL); in is_vector()
749 return (matrix_columns > 1) && (base_type == GLSL_TYPE_FLOAT || in is_matrix()
750 base_type in is_matrix()
[all...]
H A Dnir_types.cpp147 return type->base_type; in glsl_get_base_type()
616 glsl_scalar_type(enum glsl_base_type base_type) in glsl_scalar_type() argument
618 return glsl_type::get_instance(base_type, 1, 1); in glsl_scalar_type()
622 glsl_vector_type(enum glsl_base_type base_type, unsigned components) in glsl_vector_type() argument
624 const glsl_type *t = glsl_type::get_instance(base_type, components, 1); in glsl_vector_type()
630 glsl_matrix_type(enum glsl_base_type base_type, unsigned rows, unsigned columns) in glsl_matrix_type() argument
632 const glsl_type *t = glsl_type::get_instance(base_type, rows, columns); in glsl_matrix_type()
642 const glsl_type *t = glsl_type::get_instance(mat->base_type, in glsl_explicit_matrix_type()
665 return glsl_vector_type(t->base_type, components); in glsl_replace_vector_type()
692 enum glsl_base_type base_type) in glsl_sampler_type()
691 glsl_sampler_type(enum glsl_sampler_dim dim, bool is_shadow, bool is_array, enum glsl_base_type base_type) glsl_sampler_type() argument
710 glsl_texture_type(enum glsl_sampler_dim dim, bool is_array, enum glsl_base_type base_type) glsl_texture_type() argument
717 glsl_image_type(enum glsl_sampler_dim dim, bool is_array, enum glsl_base_type base_type) glsl_image_type() argument
960 glsl_type_count(const glsl_type *type, glsl_base_type base_type) glsl_type_count() argument
[all...]
H A Dglsl_types.cpp47 glsl_base_type base_type, unsigned vector_elements, in glsl_type()
52 base_type(base_type), sampled_type(GLSL_TYPE_VOID), in glsl_type()
66 ASSERT_BITFIELD_SIZE(glsl_type, base_type, GLSL_TYPE_ERROR); in glsl_type()
84 glsl_type::glsl_type(GLenum gl_type, glsl_base_type base_type, in glsl_type() argument
88 base_type(base_type), sampled_type(type), in glsl_type()
109 base_type(GLSL_TYPE_STRUCT), sampled_type(GLSL_TYPE_VOID), in glsl_type()
141 base_type(GLSL_TYPE_INTERFACE), sampled_type(GLSL_TYPE_VOID), in glsl_type()
167 base_type(GLSL_TYPE_FUNCTIO in glsl_type()
46 glsl_type(GLenum gl_type, glsl_base_type base_type, unsigned vector_elements, unsigned matrix_columns, const char *name, unsigned explicit_stride, bool row_major, unsigned explicit_alignment) glsl_type() argument
664 get_instance(unsigned base_type, unsigned rows, unsigned columns, unsigned explicit_stride, bool row_major, unsigned explicit_alignment) get_instance() argument
1845 const glsl_type *base_type = st->fields.array; struct_location_offset() local
3046 unsigned base_type:5; global() member
3054 unsigned base_type:5; global() member
3062 unsigned base_type:5; global() member
3067 unsigned base_type:5; global() member
3225 glsl_base_type base_type = (glsl_base_type)encoded.basic.base_type; decode_type_from_blob() local
[all...]
H A Dnir_types.h199 const struct glsl_type *glsl_scalar_type(enum glsl_base_type base_type);
200 const struct glsl_type *glsl_vector_type(enum glsl_base_type base_type,
204 const struct glsl_type *glsl_matrix_type(enum glsl_base_type base_type,
224 enum glsl_base_type base_type);
229 enum glsl_base_type base_type);
232 enum glsl_base_type base_type);
/third_party/mesa3d/src/compiler/glsl/
H A Dir_validate.cpp144 } else if (ir->array->type->base_type != ir->type->base_type) { in visit_enter()
361 assert(ir->operands[0]->type->base_type == in visit_leave()
371 assert(ir->type->base_type == GLSL_TYPE_FLOAT16); in visit_leave()
394 assert(ir->operands[0]->type->base_type == GLSL_TYPE_INT); in visit_leave()
395 assert(ir->type->base_type == GLSL_TYPE_FLOAT); in visit_leave()
398 assert(ir->operands[0]->type->base_type == GLSL_TYPE_FLOAT); in visit_leave()
399 assert(ir->type->base_type == GLSL_TYPE_INT); in visit_leave()
402 assert(ir->operands[0]->type->base_type == GLSL_TYPE_UINT); in visit_leave()
403 assert(ir->type->base_type in visit_leave()
[all...]
H A Dir.cpp299 if (op0->type->base_type == GLSL_TYPE_INT) { in ir_expression()
303 assert(op0->type->base_type == GLSL_TYPE_INT16); in ir_expression()
310 if (op0->type->base_type == GLSL_TYPE_UINT) { in ir_expression()
314 assert(op0->type->base_type == GLSL_TYPE_UINT16); in ir_expression()
559 switch (op0->type->base_type) { in ir_expression()
709 assert((type->base_type >= GLSL_TYPE_UINT) in ir_constant()
710 && (type->base_type <= GLSL_TYPE_IMAGE)); in ir_constant()
876 switch (this->type->base_type) { in ir_constant()
929 switch (type->base_type) { in ir_constant()
948 switch (type->base_type) { in ir_constant()
[all...]
H A Dlower_int64.cpp210 val->type->base_type == GLSL_TYPE_UINT64 in expand_source()
214 val->type->base_type == GLSL_TYPE_UINT64 in expand_source()
238 type->base_type == GLSL_TYPE_UINT64 in compact_destination()
266 ir->type->base_type == GLSL_TYPE_UINT64 in lower_op_to_function_call()
358 if (ir->type->base_type == GLSL_TYPE_UINT64) { in handle_rvalue()
368 if (ir->type->base_type == GLSL_TYPE_UINT64) { in handle_rvalue()
/third_party/ltp/tools/sparse/sparse-src/
H A Dsymbol.c113 sym = sym->ctype.base_type; in bitfield_base_size()
115 sym = sym->ctype.base_type; in bitfield_base_size()
160 sym->ctype.base_type->bit_offset = bit_offset; in lay_out_struct()
190 sym = sym->ctype.base_type; in examine_anonymous_member()
218 if (member->ctype.base_type == &autotype_ctype) { in examine_struct_union_type()
220 member->ctype.base_type = &incomplete_ctype; in examine_struct_union_type()
259 struct symbol *base_type; in examine_base_type() local
261 if (sym->ctype.base_type == &autotype_ctype) { in examine_base_type()
268 type = type->ctype.base_type; in examine_base_type()
269 type = type->ctype.base_type; in examine_base_type()
292 struct symbol *base_type = examine_base_type(sym); examine_array_type() local
319 struct symbol *base_type = examine_base_type(sym); examine_bitfield_type() local
345 merge_type(struct symbol *sym, struct symbol *base_type) merge_type() argument
478 struct symbol *base_type = examine_base_type(sym); examine_node_type() local
516 struct symbol *base_type = examine_base_type(sym); examine_enum_type() local
887 struct symbol *base_type; global() member
[all...]
H A Dsymbol.h99 struct symbol *base_type; member
361 extern void merge_type(struct symbol *sym, struct symbol *base_type);
372 return examine_symbol_type(sym->ctype.base_type); in get_base_type()
383 type = type->ctype.base_type; in is_int_type()
385 type = type->ctype.base_type; in is_int_type()
387 type->ctype.base_type == &int_type; in is_int_type()
393 type = type->ctype.base_type; in is_enum_type()
400 sym = sym->ctype.base_type; in is_signed_type()
414 type = type->ctype.base_type; in is_ptr_type()
421 type = type->ctype.base_type; in is_func_type()
[all...]
H A Dparse.c592 sym->ctype.base_type = kw->type; in init_keyword()
679 ctype = ctx->mode->to_mode(ctx->ctype.base_type); in apply_modifiers()
682 show_typename(ctx->ctype.base_type)); in apply_modifiers()
684 ctx->ctype.base_type = ctype; in apply_modifiers()
692 sym->ctype.base_type = ctype->base_type; in alloc_indirect_symbol()
695 ctype->base_type = sym; in alloc_indirect_symbol()
739 ctx->ctype.base_type = sym; in struct_union_enum_specifier()
758 ctx->ctype.base_type = sym; in struct_union_enum_specifier()
761 ctx->ctype.base_type in struct_union_enum_specifier()
889 cast_enum_list(struct symbol_list *list, struct symbol *base_type) cast_enum_list() argument
914 struct symbol *ctype = NULL, *base_type = NULL; parse_enum_declaration() local
1784 struct symbol *base_type = ctype->base_type; direct_declarator() local
1870 struct symbol *base_type = bitfield->ctype.base_type; handle_bitfield() local
2740 struct symbol *base_type = decl->ctype.base_type; parse_function_body() local
2894 struct symbol *base_type; external_declaration() local
[all...]
H A Ddissect.c61 *base_type(struct symbol *sym),
96 if (!type->ctype.base_type) in fix_mode()
125 struct symbol *ret = mem->ctype.base_type; in report_member()
142 report_implicit(mode, pos, base_type(mem))); in report_implicit()
159 if (!sym->ctype.base_type) in expr_symbol()
160 sym->ctype.base_type = &bad_ctype; in expr_symbol()
168 struct symbol *ret = base_type(sym); in report_symbol()
212 while ((base = node->ctype.base_type) != NULL) in examine_sym_node()
215 node->ctype.base_type = in examine_sym_node()
257 static struct symbol *base_type(struc function
[all...]
H A Devaluate.c82 struct symbol *base_type; in evaluate_symbol_expression() local
91 base_type = get_base_type(sym); in evaluate_symbol_expression()
92 if (!base_type) { in evaluate_symbol_expression()
126 sym->ctype.base_type = array; in evaluate_string()
138 array->ctype.base_type = char_type; in evaluate_string()
165 type = type->ctype.base_type; in integer_promotion()
229 static struct symbol *base_type(struct symbol *node, unsigned long *modp, struct ident **asp) in base_type() function
238 node = node->ctype.base_type; in base_type()
254 old = base_type(old, &oldmod, &oldas); in is_same_type()
255 new = base_type(ne in is_same_type()
2238 struct symbol *base_type; evaluate_sizeof() local
3531 struct symbol *base_type; evaluate_symbol() local
[all...]
H A Dbuiltin.c38 t = t->ctype.base_type; in is_dynamic_type()
96 struct symbol *fntype = expr->fn->ctype->ctype.base_type; in args_prototype()
344 type = type->ctype.base_type; in evaluate_overflow_gen()
349 type = type->ctype.base_type; in evaluate_overflow_gen()
354 type = type->ctype.base_type; in evaluate_overflow_gen()
357 if (type->ctype.base_type != &int_type || type == &bool_ctype) in evaluate_overflow_gen()
406 struct symbol *fntype = expr->fn->ctype->ctype.base_type; in evaluate_generic_int_op()
425 t = t->ctype.base_type; in evaluate_generic_int_op()
428 if (t->ctype.base_type != &int_type) in evaluate_generic_int_op()
458 struct symbol *fntype = expr->fn->ctype->ctype.base_type; in eval_atomic_common()
[all...]
/third_party/spirv-tools/source/val/
H A Dvalidate_bitwise.cpp28 const uint32_t base_type) { in ValidateBaseType()
31 if (!_.IsIntScalarType(base_type) && !_.IsIntVectorType(base_type)) { in ValidateBaseType()
40 if (_.GetBitWidth(base_type) != 32) { in ValidateBaseType()
49 if (base_type != inst->type_id() && opcode != spv::Op::OpBitCount) { in ValidateBaseType()
73 const uint32_t base_type = _.GetOperandTypeId(inst, 2); in BitwisePass() local
76 if (!base_type || in BitwisePass()
77 (!_.IsIntScalarType(base_type) && !_.IsIntVectorType(base_type))) in BitwisePass()
82 if (_.GetDimension(base_type) ! in BitwisePass()
27 ValidateBaseType(ValidationState_t& _, const Instruction* inst, const uint32_t base_type) ValidateBaseType() argument
143 const uint32_t base_type = _.GetOperandTypeId(inst, 2); BitwisePass() local
171 const uint32_t base_type = _.GetOperandTypeId(inst, 2); BitwisePass() local
192 const uint32_t base_type = _.GetOperandTypeId(inst, 2); BitwisePass() local
207 const uint32_t base_type = _.GetOperandTypeId(inst, 2); BitwisePass() local
[all...]
/third_party/skia/third_party/externals/spirv-tools/source/val/
H A Dvalidate_bitwise.cpp42 const uint32_t base_type = _.GetOperandTypeId(inst, 2); in BitwisePass() local
45 if (!base_type || in BitwisePass()
46 (!_.IsIntScalarType(base_type) && !_.IsIntVectorType(base_type))) in BitwisePass()
51 if (_.GetDimension(base_type) != result_dimension) in BitwisePass()
56 if (_.GetBitWidth(base_type) != _.GetBitWidth(result_type)) in BitwisePass()
117 const uint32_t base_type = _.GetOperandTypeId(inst, 2); in BitwisePass() local
122 if (base_type != result_type) in BitwisePass()
151 const uint32_t base_type = _.GetOperandTypeId(inst, 2); in BitwisePass() local
155 if (base_type ! in BitwisePass()
178 const uint32_t base_type = _.GetOperandTypeId(inst, 2); BitwisePass() local
193 const uint32_t base_type = _.GetOperandTypeId(inst, 2); BitwisePass() local
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/val/
H A Dvalidate_bitwise.cpp42 const uint32_t base_type = _.GetOperandTypeId(inst, 2); in BitwisePass() local
45 if (!base_type || in BitwisePass()
46 (!_.IsIntScalarType(base_type) && !_.IsIntVectorType(base_type))) in BitwisePass()
51 if (_.GetDimension(base_type) != result_dimension) in BitwisePass()
56 if (_.GetBitWidth(base_type) != _.GetBitWidth(result_type)) in BitwisePass()
117 const uint32_t base_type = _.GetOperandTypeId(inst, 2); in BitwisePass() local
122 if (base_type != result_type) in BitwisePass()
151 const uint32_t base_type = _.GetOperandTypeId(inst, 2); in BitwisePass() local
155 if (base_type ! in BitwisePass()
178 const uint32_t base_type = _.GetOperandTypeId(inst, 2); BitwisePass() local
193 const uint32_t base_type = _.GetOperandTypeId(inst, 2); BitwisePass() local
[all...]
/third_party/skia/third_party/externals/spirv-tools/source/opt/
H A Dinstruction.cpp277 Instruction* base_type = in IsVulkanStorageImage() local
281 if (base_type->opcode() == SpvOpTypeArray || in IsVulkanStorageImage()
282 base_type->opcode() == SpvOpTypeRuntimeArray) { in IsVulkanStorageImage()
283 base_type = context()->get_def_use_mgr()->GetDef( in IsVulkanStorageImage()
284 base_type->GetSingleWordInOperand(0)); in IsVulkanStorageImage()
287 if (base_type->opcode() != SpvOpTypeImage) { in IsVulkanStorageImage()
291 if (base_type->GetSingleWordInOperand(kTypeImageDimIndex) == SpvDimBuffer) { in IsVulkanStorageImage()
297 return base_type->GetSingleWordInOperand(kTypeImageSampledIndex) != 1; in IsVulkanStorageImage()
311 Instruction* base_type = in IsVulkanSampledImage() local
315 if (base_type in IsVulkanSampledImage()
345 Instruction* base_type = IsVulkanStorageTexelBuffer() local
375 Instruction* base_type = IsVulkanStorageBuffer() local
433 Instruction* base_type = IsVulkanUniformBuffer() local
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
H A Dinstruction.cpp277 Instruction* base_type = in IsVulkanStorageImage() local
281 if (base_type->opcode() == SpvOpTypeArray || in IsVulkanStorageImage()
282 base_type->opcode() == SpvOpTypeRuntimeArray) { in IsVulkanStorageImage()
283 base_type = context()->get_def_use_mgr()->GetDef( in IsVulkanStorageImage()
284 base_type->GetSingleWordInOperand(0)); in IsVulkanStorageImage()
287 if (base_type->opcode() != SpvOpTypeImage) { in IsVulkanStorageImage()
291 if (base_type->GetSingleWordInOperand(kTypeImageDimIndex) == SpvDimBuffer) { in IsVulkanStorageImage()
297 return base_type->GetSingleWordInOperand(kTypeImageSampledIndex) != 1; in IsVulkanStorageImage()
311 Instruction* base_type = in IsVulkanSampledImage() local
315 if (base_type in IsVulkanSampledImage()
345 Instruction* base_type = IsVulkanStorageTexelBuffer() local
375 Instruction* base_type = IsVulkanStorageBuffer() local
433 Instruction* base_type = IsVulkanUniformBuffer() local
[all...]
/third_party/skia/third_party/externals/tint/src/inspector/
H A Dresource_binding.cc50 ResourceBinding::SampledKind BaseTypeToSampledKind(const sem::Type* base_type) { in BaseTypeToSampledKind() argument
51 if (!base_type) { in BaseTypeToSampledKind()
55 if (auto* at = base_type->As<sem::Array>()) { in BaseTypeToSampledKind()
56 base_type = at->ElemType(); in BaseTypeToSampledKind()
57 } else if (auto* mt = base_type->As<sem::Matrix>()) { in BaseTypeToSampledKind()
58 base_type = mt->type(); in BaseTypeToSampledKind()
59 } else if (auto* vt = base_type->As<sem::Vector>()) { in BaseTypeToSampledKind()
60 base_type = vt->type(); in BaseTypeToSampledKind()
63 if (base_type->Is<sem::F32>()) { in BaseTypeToSampledKind()
65 } else if (base_type in BaseTypeToSampledKind()
[all...]
/third_party/spirv-tools/source/opt/
H A Dinstruction.cpp284 Instruction* base_type = in IsVulkanStorageImage() local
288 if (base_type->opcode() == spv::Op::OpTypeArray || in IsVulkanStorageImage()
289 base_type->opcode() == spv::Op::OpTypeRuntimeArray) { in IsVulkanStorageImage()
290 base_type = context()->get_def_use_mgr()->GetDef( in IsVulkanStorageImage()
291 base_type->GetSingleWordInOperand(0)); in IsVulkanStorageImage()
294 if (base_type->opcode() != spv::Op::OpTypeImage) { in IsVulkanStorageImage()
298 if (spv::Dim(base_type->GetSingleWordInOperand(kTypeImageDimIndex)) == in IsVulkanStorageImage()
305 return base_type->GetSingleWordInOperand(kTypeImageSampledIndex) != 1; in IsVulkanStorageImage()
319 Instruction* base_type = in IsVulkanSampledImage() local
323 if (base_type in IsVulkanSampledImage()
354 Instruction* base_type = IsVulkanStorageTexelBuffer() local
385 Instruction* base_type = IsVulkanStorageBuffer() local
444 Instruction* base_type = IsVulkanUniformBuffer() local
[all...]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/
H A Dangle_format.py215 base_type = None
219 base_type = 'float'
221 base_type = 'half'
226 base_type = 'byte'
228 base_type = 'short'
230 base_type = 'int'
235 if base_type is None:
238 return 'GL' + sign + base_type
/third_party/mesa3d/src/compiler/spirv/
H A Dvtn_opencl.c66 enum vtn_base_type base_type = src_types[i]->base_type; in vtn_opencl_mangle() local
67 if (src_types[i]->base_type == vtn_base_type_pointer) { in vtn_opencl_mangle()
74 base_type = src_types[i]->deref->base_type; in vtn_opencl_mangle()
88 const struct glsl_type *other_type = src_types[j]->base_type == vtn_base_type_pointer ? in vtn_opencl_mangle()
104 switch (base_type) { in vtn_opencl_mangle()
402 ret->base_type = glsl_type_is_vector(type) ? vtn_base_type_vector : vtn_base_type_scalar; in get_vtn_type_for_glsl_type()
413 ret->base_type = vtn_base_type_pointer; in get_pointer_type()
422 if (t->base_type in get_signed_type()
631 enum glsl_base_type base_type = glsl_get_base_type(type->type); _handle_v_load_store() local
[all...]
/third_party/python/Lib/importlib/metadata/
H A D_itertools.py23 def always_iterable(obj, base_type=(str, bytes)):
48 If *base_type* is set, objects for which ``isinstance(obj, base_type)``
54 >>> list(always_iterable(obj, base_type=dict)) # Treat dicts as a unit
57 Set *base_type* to ``None`` to avoid any special handling and treat objects
61 >>> list(always_iterable(obj, base_type=None))
67 if (base_type is not None) and isinstance(obj, base_type):
/third_party/ltp/tools/sparse/
H A Dsparse-ltp.c156 /* See base_type() in dissect.c */
159 switch (sym->ctype.base_type->type) { in unwrap_base_type()
163 return unwrap_base_type(sym->ctype.base_type); in unwrap_base_type()
165 return sym->ctype.base_type; in unwrap_base_type()
210 if (!sym->ctype.base_type) in check_test_struct()
213 ctype_name = sym->ctype.base_type->ident; in check_test_struct()
233 switch (entry->ctype->ctype.base_type->type) { in check_test_struct()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
H A Dgen_vk_format_table.py133 base_type = None
135 base_type = 'byte'
137 base_type = 'short'
139 base_type = 'int'
142 return 'CopyNativeVertexData<GLu%s, 1, 1, 0>' % base_type

Completed in 222 milliseconds

123456