Home
last modified time | relevance | path

Searched refs:vectorSize (Results 1 – 17 of 17) sorted by relevance

/third_party/glslang/glslang/Include/
DTypes.h98 unsigned int vectorSize : 3; // vector return type size. member
111 unsigned int getVectorSize() const { return vectorSize; } in getVectorSize()
156 vectorSize = 4; in clear()
1356 int vectorSize : 4; variable
1374 vectorSize = 1; in initType()
1403 vectorSize = s; in setVector()
1410 vectorSize = 0; in setMatrix()
1415 return matrixCols == 0 && vectorSize == 1 && arraySizes == nullptr && userDef == nullptr; in isScalar()
1433 …basicType(t), vectorSize(vs), matrixCols(mc), matrixRows(mr), vector1(isVector && vs == 1), coopma… in POOL_ALLOCATOR_NEW_DELETE()
1439 … assert(!(isMatrix() && vectorSize != 0)); // prevent vectorSize != 0 on matrices in POOL_ALLOCATOR_NEW_DELETE()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/spirv_assembly/
DvktSpvAsmTypeTests.cpp170 deUint32 getConstituentIndex (deUint32 ndx, deUint32 vectorSize) in getConstituentIndex() argument
172 DE_ASSERT(vectorSize != 0u); in getConstituentIndex()
173 return (ndx / vectorSize) / (1u + (ndx % vectorSize)); in getConstituentIndex()
356 string getBooleanResultType (deUint32 vectorSize) in getBooleanResultType() argument
358 if (vectorSize > 1) in getBooleanResultType()
359 return "v" + de::toString(vectorSize) + "bool"; in getBooleanResultType()
536 string getOtherSizeTypes (InputType inputType, deUint32 vectorSize, InputWidth inputWidth) in getOtherSizeTypes() argument
563 if (vectorSize > 1) in getOtherSizeTypes()
564 …str += "%v" + de::toString(vectorSize) + signPrefix + "8 = OpTypeVector %" + signPrefix + "8 " + d… in getOtherSizeTypes()
573 if (vectorSize > 1) in getOtherSizeTypes()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderexecutor/
DvktShaderFConvertTests.cpp332 const size_t vectorSize = elementSize * effectiveLength; in calculate() local
333 const size_t extraBytes = vectorSize % kArrayAlignment; in calculate()
335 info.vectorStrideBytes = vectorSize + ((extraBytes == 0) ? 0 : (kArrayAlignment - extraBytes)); in calculate()
375 const size_t vectorSize = elementSize * effectiveLength; in unpackFloats() local
376 const size_t extraBytes = vectorSize % kArrayAlignment; in unpackFloats()
377 …const size_t vectorBlockSize = vectorSize + ((extraBytes == 0) ? 0 : (kArrayAlignment - extraBytes… in unpackFloats()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/mesh_shader/
DvktMeshShaderApiTests.cpp440 const uint32_t vectorSize = std::max(1u, m_params.drawCount); in iterate() local
441 …const uint32_t largeDrawCount = vectorSize + 1u; // The indirect buffer needs to have some paddi… in iterate()
442 const uint32_t evenBlockSize = extent.height / vectorSize; in iterate()
445 blockSizes.reserve(vectorSize); in iterate()
446 for (uint32_t i = 0; i < vectorSize - 1u; ++i) in iterate()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/
DConvertUnsupportedConstructorsToFunctionCalls.cpp62 const int vectorSize = type.getNominalSize(); in AppendVectorFromScalarArgument() local
65 for (int i = 0; i < vectorSize; ++i) in AppendVectorFromScalarArgument()
/third_party/vk-gl-cts/modules/gles2/functional/
Des2fDefaultVertexAttributeTests.cpp326 …const int vectorSize = (glu::isDataTypeMatrix(m_dataType)) ? (glu::getDataTypeMatrixNumRows(m_da… in genVertexSource() local
327 …Vector(glu::TYPE_FLOAT, vectorSize)) : (glu::isDataTypeVector(m_dataType)) ? (glu::getDataTypeVect… in genVertexSource()
/third_party/vk-gl-cts/modules/gles3/functional/
Des3fDefaultVertexAttributeTests.cpp402 …const int vectorSize = (glu::isDataTypeMatrix(m_dataType)) ? (glu::getDataTypeMatrixNumRows(m_da… in genVertexSource() local
403 …Vector(glu::TYPE_FLOAT, vectorSize)) : (glu::isDataTypeVector(m_dataType)) ? (glu::getDataTypeVect… in genVertexSource()
/third_party/skia/third_party/externals/swiftshader/src/Reactor/
DSubzeroReactor.cpp2100 const int vectorSize = 16; in createConstantVector() local
2101 ASSERT(Ice::typeWidthInBytes(T(type)) == vectorSize); in createConstantVector()
2102 const int alignment = vectorSize; in createConstantVector()
2116 static_assert(sizeof(initializer) == vectorSize, "!"); in createConstantVector()
2117 ptr = IceConstantData(initializer, vectorSize, alignment); in createConstantVector()
2123 static_assert(sizeof(initializer) == vectorSize, "!"); in createConstantVector()
2124 ptr = IceConstantData(initializer, vectorSize, alignment); in createConstantVector()
2131 static_assert(sizeof(initializer) == vectorSize, "!"); in createConstantVector()
2132 ptr = IceConstantData(initializer, vectorSize, alignment); in createConstantVector()
2139 static_assert(sizeof(initializer) == vectorSize, "!"); in createConstantVector()
[all …]
/third_party/skia/src/sksl/codegen/
DSkSLSPIRVCodeGenerator.cpp907 SpvId SPIRVCodeGenerator::vectorize(const Expression& arg, int vectorSize, OutputStream& out) { in vectorize() argument
908 SkASSERT(vectorSize >= 1 && vectorSize <= 4); in vectorize()
912 if (vectorSize == 1) { in vectorize()
916 this->writeOpCode(SpvOpCompositeConstruct, 3 + vectorSize, out); in vectorize()
917 this->writeWord(this->getType(argType.toCompound(fContext, vectorSize, 1)), out); in vectorize()
919 for (int i = 0; i < vectorSize; i++) { in vectorize()
924 SkASSERT(vectorSize == argType.columns()); in vectorize()
930 int vectorSize = 1; in vectorize() local
933 if (vectorSize > 1) { in vectorize()
934 SkASSERT(a->type().columns() == vectorSize); in vectorize()
[all …]
DSkSLSPIRVCodeGenerator.h254 SpvId vectorize(const Expression& expr, int vectorSize, OutputStream& out);
/third_party/glslang/SPIRV/
DGlslangToSpv.cpp210 spv::Id createIntWidthConversion(glslang::TOperator op, spv::Id operand, int vectorSize);
211 spv::Id makeSmearedConstant(spv::Id constant, int vectorSize);
6252 …angToSpvTraverser::createIntWidthConversion(glslang::TOperator op, spv::Id operand, int vectorSize) in createIntWidthConversion() argument
6321 if (vectorSize > 0) in createIntWidthConversion()
6322 type = builder.makeVectorType(type, vectorSize); in createIntWidthConversion()
6334 int vectorSize = builder.isVectorType(destType) ? builder.getNumTypeComponents(destType) : 0; in createConversion() local
6340 zero = makeSmearedConstant(zero, vectorSize); in createConversion()
6344 zero = makeSmearedConstant(zero, vectorSize); in createConversion()
6451 zero = makeSmearedConstant(zero, vectorSize); in createConversion()
6479 zero = makeSmearedConstant(zero, vectorSize); in createConversion()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/
DvktBasicDrawTests.cpp669 const deUint32 vectorSize = m_data.params.firstVertex + m_data.params.vertexCount; in generateDrawData() local
672 …m_data.vertices = std::vector<PositionColorVertex>(vectorSize, PositionColorVertex(tcu::Vec4(0.0, … in generateDrawData()
675 for (deUint32 vertexIdx = m_data.params.firstVertex; vertexIdx < vectorSize; ++vertexIdx) in generateDrawData()
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
DGLSLTest.cpp30 std::string GenerateVaryingType(GLint vectorSize) in GenerateVaryingType() argument
34 if (vectorSize == 1) in GenerateVaryingType()
40 sprintf(varyingType, "vec%d", vectorSize); in GenerateVaryingType()
46 std::string GenerateVectorVaryingDeclaration(GLint vectorSize, GLint arraySize, GLint id) in GenerateVectorVaryingDeclaration() argument
52 sprintf(buff, "varying %s v%d;\n", GenerateVaryingType(vectorSize).c_str(), id); in GenerateVectorVaryingDeclaration()
56 sprintf(buff, "varying %s v%d[%d];\n", GenerateVaryingType(vectorSize).c_str(), id, in GenerateVectorVaryingDeclaration()
63 std::string GenerateVectorVaryingSettingCode(GLint vectorSize, GLint arraySize, GLint id) in GenerateVectorVaryingSettingCode() argument
70 sprintf(buff, "\t v%d = %s(1.0);\n", id, GenerateVaryingType(vectorSize).c_str()); in GenerateVectorVaryingSettingCode()
78 GenerateVaryingType(vectorSize).c_str()); in GenerateVectorVaryingSettingCode()
/third_party/skia/third_party/externals/angle2/src/libANGLE/
DProgram.h826 int vectorSize,
DProgram.cpp4135 int vectorSize, in clampUniformCount() argument
4150 if (count * vectorSize > maxElementCount) in clampUniformCount()
4152 return maxElementCount / vectorSize; in clampUniformCount()
/third_party/glslang/glslang/HLSL/
DhlslParseHelper.cpp7592 to1Sampler.vectorSize = to2Sampler.vectorSize = from.getSampler().vectorSize; in findFunction()
9595 sampler.vectorSize = retType.getVectorSize(); in setTextureReturnType()
/third_party/glslang/glslang/MachineIndependent/
DParseHelper.cpp3288 …if (pType.basicType != EbtBool || pType.arraySizes || pType.matrixCols > 1 || (pType.vectorSize > … in boolCheck()