Home
last modified time | relevance | path

Searched refs:vecsize (Results 1 – 19 of 19) sorted by relevance

/third_party/skia/third_party/externals/spirv-cross/
Dspirv_hlsl.cpp426 if (type.vecsize == 1 && type.columns == 1) // Scalar builtin in type_to_glsl()
469 else if (type.vecsize > 1 && type.columns == 1) // Vector builtin in type_to_glsl()
474 return join("bool", type.vecsize); in type_to_glsl()
476 return join("int", type.vecsize); in type_to_glsl()
478 return join("uint", type.vecsize); in type_to_glsl()
480 return join(hlsl_options.enable_16bit_types ? "half" : "min16float", type.vecsize); in type_to_glsl()
482 return join(hlsl_options.enable_16bit_types ? "int16_t" : "min16int", type.vecsize); in type_to_glsl()
484 return join(hlsl_options.enable_16bit_types ? "uint16_t" : "min16uint", type.vecsize); in type_to_glsl()
486 return join("float", type.vecsize); in type_to_glsl()
488 return join("double", type.vecsize); in type_to_glsl()
[all …]
Dspirv_msl.cpp442 vec4_type.vecsize = 4; in build_implicit_builtins()
923 vec4_type.vecsize = 4; in build_implicit_builtins()
1969 type->vecsize = components; in build_extended_vector_type()
2041 uint32_t type_components = type.vecsize; in add_component_variable_to_interface_block()
2122 uint32_t type_components = type.vecsize; in add_plain_variable_to_interface_block()
2372 if (usable_type->vecsize < target_components) in add_composite_variable_to_interface_block()
2474 remap_swizzle(padded_type, usable_type->vecsize, join(to_name(var.self), "[", i, "]")), in add_composite_variable_to_interface_block()
3392 … location_meta.num_components = std::max(location_meta.num_components, component + type.vecsize); in add_interface_block()
3626 type.vecsize = input.second.vecsize; in add_interface_block()
3807 if (num_components > type.vecsize) in ensure_correct_input_type()
[all …]
Dspirv_glsl.cpp277 const char *CompilerGLSL::vector_swizzle(int vecsize, int index) in vector_swizzle() argument
292 assert(vecsize >= 1 && vecsize <= 4); in vector_swizzle()
294 assert(swizzle[vecsize - 1][index]); in vector_swizzle()
296 return swizzle[vecsize - 1][index]; in vector_swizzle()
1437 if (type.vecsize == 1 && type.columns == 1) in type_to_packed_alignment()
1441 if ((type.vecsize == 2 || type.vecsize == 4) && type.columns == 1) in type_to_packed_alignment()
1442 return type.vecsize * base_alignment; in type_to_packed_alignment()
1445 if (type.vecsize == 3 && type.columns == 1) in type_to_packed_alignment()
1456 else if (type.vecsize == 3) in type_to_packed_alignment()
1459 return type.vecsize * base_alignment; in type_to_packed_alignment()
[all …]
Dspirv_common.hpp550 uint32_t vecsize = 1; member
1099 uint32_t vecsize = 1; member
1239 return m.c[0].vecsize; in vector_size()
1252 c.vecsize = constant_type_.vecsize; in make_null()
1293 m.c[0].vecsize = 1; in SPIRConstant()
1303 m.c[0].vecsize = 1; in SPIRConstant()
1313 bool matrix = vector_elements[0]->m.c[0].vecsize > 1; in SPIRConstant()
1328 m.c[0].vecsize = num_elements; in SPIRConstant()
Dspirv_parser.cpp522 uint32_t vecsize = ops[2]; in parse() local
528 vecbase.vecsize = vecsize; in parse()
1152 if (a.vecsize != b.vecsize) in types_are_logically_equivalent()
Dspirv_cross.cpp585 return type.basetype != SPIRType::Struct && type.vecsize == 1 && type.columns == 1; in is_scalar()
590 return type.vecsize > 1 && type.columns == 1; in is_vector()
595 return type.vecsize > 1 && type.columns > 1; in is_matrix()
1949 unsigned vecsize = type.vecsize; in get_declared_struct_member_size() local
1956 return vecsize * component_size; in get_declared_struct_member_size()
1964 return matrix_stride * vecsize; in get_declared_struct_member_size()
2033 if (a.vecsize != b.vecsize) in types_are_logically_equivalent()
3579 …if (type.vecsize == 1 && type.columns == 1 && type.basetype != SPIRType::Struct && type.array.empt… in analyze_variable_scope()
Dspirv_cross_c.cpp1163 input.vecsize = si->vecsize; in spvc_compiler_msl_add_shader_input()
2088 return type->vecsize; in spvc_type_get_vector_size()
2527 input->vecsize = input_default.vecsize; in spvc_msl_shader_input_init()
Dmain.cpp315 if (type.vecsize > 1) in print_resources()
316 type_str += std::to_string(type.vecsize); in print_resources()
1571 input.vecsize = parser.next_uint(); in main_inner()
Dspirv_cross_c.h338 unsigned vecsize; member
Dspirv_msl.hpp65 uint32_t vecsize = 0; member
Dspirv_glsl.hpp929 static const char *vector_swizzle(int vecsize, int index);
/third_party/mesa3d/src/panfrost/bifrost/
Dbir.c69 unsigned vecsize = ins->vecsize + 1; /* XXX: off-by-one */ in bi_count_staging_registers() local
76 DIV_ROUND_UP(vecsize, 2) : vecsize; in bi_count_staging_registers()
78 return vecsize; in bi_count_staging_registers()
Dbi_opt_message_preload.c108 .num_components = I->vecsize + 1 in bi_opt_message_preload()
Dbifrost_compile.c426 enum bi_vecsize vecsize = (instr->num_components + component - 1); in bi_emit_load_attr() local
436 bi_instance_id(b), regfmt, vecsize, in bi_emit_load_attr()
447 idx, regfmt, vecsize); in bi_emit_load_attr()
501 enum bi_vecsize vecsize = (instr->num_components + component - 1); in bi_emit_load_vary() local
541 sample, source_format, update, vecsize, in bi_emit_load_vary()
545 vecsize, imm_index); in bi_emit_load_vary()
548 vecsize, imm_index); in bi_emit_load_vary()
565 vecsize); in bi_emit_load_vary()
571 update, vecsize); in bi_emit_load_vary()
578 vecsize); in bi_emit_load_vary()
[all …]
Dcompiler.h388 enum bi_vecsize vecsize; member
/third_party/mesa3d/src/panfrost/bifrost/valhall/
Dva_perf.c51 stats->v += (I->vecsize + 1) * in va_count_instr_stats()
Dvalhall.h101 bool vecsize : 1; member
Dva_pack.c680 if (info.vecsize) in va_pack_instr()
681 hex |= ((uint64_t) I->vecsize << 28); in va_pack_instr()
771 unsigned vecsize = 4; in va_pack_instr() local
772 hex |= ((uint64_t) (vecsize - 1) << 28); in va_pack_instr()
/third_party/mesa3d/docs/relnotes/
D22.2.0.rst630 - pan/bi: Make LD_VAR w=format instead of w=vecsize