Home
last modified time | relevance | path

Searched refs:scalarType (Results 1 – 25 of 40) sorted by relevance

12

/external/skia/src/sksl/ir/
DSkSLConstructorCompoundCast.cpp22 const Type& scalarType = destType.componentType(); in cast_constant_composite() local
29 ConstructorScalarCast::Make(context, constCtor->fOffset, scalarType, in cast_constant_composite()
39 ConstructorScalarCast::Make(context, constCtor->fOffset, scalarType, in cast_constant_composite()
51 typecastArgs.push_back(ConstructorScalarCast::Make(context, offset, scalarType, in cast_constant_composite()
58 scalarType.toCompound(context, /*columns=*/argType.columns(), /*rows=*/1), in cast_constant_composite()
DSkSLType.h494 Type(const char* name, const Type& scalarType, int priority) in Type() argument
498 , fNumberKind(scalarType.numberKind()) in Type()
502 , fHighPrecision(scalarType.highPrecision()) in Type()
503 , fScalarTypeForLiteral(&scalarType) {} in Type()
/external/deqp/external/vulkancts/modules/vulkan/shaderexecutor/
DvktShaderCommonFunctionTests.cpp160 const glu::DataType scalarType = glu::getDataTypeScalarType(type); in getComponentByteSize() local
162 DE_ASSERT( scalarType == glu::TYPE_FLOAT || in getComponentByteSize()
163 scalarType == glu::TYPE_FLOAT16 || in getComponentByteSize()
164 scalarType == glu::TYPE_DOUBLE || in getComponentByteSize()
165 scalarType == glu::TYPE_INT || in getComponentByteSize()
166 scalarType == glu::TYPE_UINT || in getComponentByteSize()
167 scalarType == glu::TYPE_INT8 || in getComponentByteSize()
168 scalarType == glu::TYPE_UINT8 || in getComponentByteSize()
169 scalarType == glu::TYPE_INT16 || in getComponentByteSize()
170 scalarType == glu::TYPE_UINT16 || in getComponentByteSize()
[all …]
DvktShaderIntegerFunctionTests.cpp84 const glu::DataType scalarType = glu::getDataTypeScalarType(basicType); in operator <<() local
95 switch (scalarType) in operator <<()
262 const glu::DataType scalarType = scalarTypes[scalarTypeNdx]; in addFunctionCases() local
264 if ((!intTypes && scalarType == glu::TYPE_INT) || (!uintTypes && scalarType == glu::TYPE_UINT)) in addFunctionCases()
277 …group->addChild(new TestClass(parent->getTestContext(), glu::DataType(scalarType + vecSize - 1), g… in addFunctionCases()
/external/llvm-project/mlir/lib/Dialect/SPIRV/
DSPIRVLowering.cpp314 auto scalarType = type.getElementType().dyn_cast<spirv::ScalarType>(); in convertTensorType() local
315 if (!scalarType) { in convertTensorType()
321 Optional<int64_t> scalarSize = getTypeNumBytes(scalarType); in convertTensorType()
330 auto arrayElemType = convertScalarType(targetEnv, scalarType); in convertTensorType()
357 } else if (auto scalarType = elementType.dyn_cast<spirv::ScalarType>()) { in convertMemrefType() local
358 arrayElemType = convertScalarType(targetEnv, scalarType, storageClass); in convertMemrefType()
432 if (auto scalarType = intType.dyn_cast<spirv::ScalarType>()) in SPIRVTypeConverter() local
433 return convertScalarType(targetEnv, scalarType); in SPIRVTypeConverter()
438 if (auto scalarType = floatType.dyn_cast<spirv::ScalarType>()) in SPIRVTypeConverter() local
439 return convertScalarType(targetEnv, scalarType); in SPIRVTypeConverter()
DLayoutUtils.cpp146 VulkanLayoutUtils::getScalarTypeAlignment(Type scalarType) { in getScalarTypeAlignment() argument
152 auto bitWidth = scalarType.getIntOrFloatBitWidth(); in getScalarTypeAlignment()
DSPIRVTypes.cpp732 if (auto scalarType = dyn_cast<ScalarType>()) { in getExtensions() local
733 scalarType.getExtensions(extensions, storage); in getExtensions()
750 if (auto scalarType = dyn_cast<ScalarType>()) { in getCapabilities() local
751 scalarType.getCapabilities(capabilities, storage); in getCapabilities()
766 if (auto scalarType = dyn_cast<ScalarType>()) in getSizeInBytes() local
767 return scalarType.getSizeInBytes(); in getSizeInBytes()
/external/deqp/external/vulkancts/modules/vulkan/transform_feedback/
DvktTransformFeedbackFuzzLayoutCase.cpp463 const glu::DataType scalarType = glu::getDataTypeScalarType(entry.type); in createMask() local
469 const size_t compSize = getDataTypeByteSize(scalarType); in createMask()
487 switch (scalarType) in createMask()
644 const glu::DataType scalarType = glu::getDataTypeScalarType(elemBasicType); in computeXfbLayout() local
647 const int stride = getDataTypeArrayStride(glu::getDataTypeVector(scalarType, vecSize)); in computeXfbLayout()
649 …trideForLocation = getDataTypeArrayStrideForLocation(glu::getDataTypeVector(scalarType, vecSize)); in computeXfbLayout()
906 const glu::DataType scalarType = glu::getDataTypeScalarType(entry.type); in generateValue() local
912 const size_t compSize = getDataTypeByteSize(scalarType); in generateValue()
930 switch (scalarType) in generateValue()
1207 const glu::DataType scalarType = glu::getDataTypeScalarType(entry.type); in generateValueSrc() local
[all …]
/external/deqp/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineSpecConstantTests.cpp1928 const glu::DataType scalarType = glu::getDataTypeScalarType(type); in makeMatrixVectorCompositeCaseDefinition() local
1930 const bool isConst = (scalarType != glu::TYPE_FLOAT) && (scalarType != glu::TYPE_DOUBLE); in makeMatrixVectorCompositeCaseDefinition()
1940 const bool isBoolElement = (scalarType == glu::TYPE_BOOL); in makeMatrixVectorCompositeCaseDefinition()
1942 const std::string accumType = glu::getDataTypeName(isBoolElement ? glu::TYPE_INT : scalarType); in makeMatrixVectorCompositeCaseDefinition()
1950 makeVector(makeSpecConstant("sc0", 1u, scalarType, specValue)), in makeMatrixVectorCompositeCaseDefinition()
1954 …generateShaderChecksumComputationCode(scalarType, varName, accumType, size1, size2, numCombination… in makeMatrixVectorCompositeCaseDefinition()
1955 computeExpectedValues(specValue, scalarType, numCombinations), in makeMatrixVectorCompositeCaseDefinition()
1956 (scalarType == glu::TYPE_DOUBLE ? (FeatureFlags)FEATURE_SHADER_FLOAT_64 : (FeatureFlags)0), in makeMatrixVectorCompositeCaseDefinition()
1985 const glu::DataType scalarType = glu::getDataTypeScalarType(elemType); in makeArrayCompositeCaseDefinition() local
1986 const bool isBoolData = (scalarType == glu::TYPE_BOOL); in makeArrayCompositeCaseDefinition()
[all …]
/external/deqp/modules/glshared/
DglsRandomShaderCase.cpp410 const char* scalarType = DE_NULL; in operator <<() local
415 case rsg::VariableType::TYPE_FLOAT: scalarType = "float"; vecType = "vec"; break; in operator <<()
416 case rsg::VariableType::TYPE_INT: scalarType = "int"; vecType = "ivec"; break; in operator <<()
417 case rsg::VariableType::TYPE_BOOL: scalarType = "bool"; vecType = "bvec"; break; in operator <<()
418 case rsg::VariableType::TYPE_SAMPLER_2D: scalarType = "sampler2D"; break; in operator <<()
419 case rsg::VariableType::TYPE_SAMPLER_CUBE: scalarType = "samplerCube"; break; in operator <<()
426 message << scalarType << "("; in operator <<()
DglsRandomShaderProgram.cpp51 const glu::DataType scalarType = varType.isFloatOrVec() ? glu::TYPE_FLOAT : in mapToBasicType() local
57 return glu::DataType(scalarType + numComps - 1); in mapToBasicType()
/external/deqp/modules/gles31/functional/
Des31fUniformLocationTests.cpp328 const glu::DataType scalarType = glu::getDataTypeScalarType(subType.getBasicType()); in genShaderSources() local
329 const char* const typeName = glu::getDataTypeName(scalarType); in genShaderSources()
330 …const string expectValue = de::floatToString(getExpectedValue(scalarType, location >= 0 ? locatio… in genShaderSources()
332 if (glu::isDataTypeSampler(scalarType)) in genShaderSources()
565 const glu::DataType scalarType = glu::getDataTypeScalarType(type.getBasicType()); in render() local
566 const char* const typeName = glu::getDataTypeName(scalarType); in render()
567 const float expectedValue = getExpectedValue(scalarType, expectedLocation, typeName); in render()
569 if (glu::isDataTypeSampler(scalarType)) in render()
573 texList.push_back(createTexture(scalarType, expectedValue, binding).release()); in render()
Des31fShaderIntegerFunctionTests.cpp82 const glu::DataType scalarType = glu::getDataTypeScalarType(basicType); in operator <<() local
93 switch (scalarType) in operator <<()
1095 const glu::DataType scalarType = scalarTypes[scalarTypeNdx]; in addFunctionCases() local
1097 if ((!intTypes && scalarType == glu::TYPE_INT) || (!uintTypes && scalarType == glu::TYPE_UINT)) in addFunctionCases()
1110 …group->addChild(new TestClass(parent->getContext(), glu::DataType(scalarType + vecSize - 1), glu::… in addFunctionCases()
Des31fSSBOLayoutCase.cpp728 const glu::DataType scalarType = glu::getDataTypeScalarType(entry.type); in generateValue() local
759 switch (scalarType) in generateValue()
1009 const glu::DataType scalarType = glu::getDataTypeScalarType(basicType); in generateImmScalarVectorSrc() local
1023 switch (scalarType) in generateImmScalarVectorSrc()
1642 bool compareComponents (glu::DataType scalarType, const void* ref, const void* res, int numComps) in compareComponents() argument
1644 if (scalarType == glu::TYPE_FLOAT) in compareComponents()
1657 else if (scalarType == glu::TYPE_BOOL) in compareComponents()
1670 DE_ASSERT(scalarType == glu::TYPE_INT || scalarType == glu::TYPE_UINT); in compareComponents()
1694 const glu::DataType scalarType = glu::getDataTypeScalarType(refEntry.type); in compareBufferVarData() local
1741 isOk = isOk && compareComponents(scalarType, resCompPtr, refCompPtr, 1); in compareBufferVarData()
[all …]
Des31fShaderCommonFunctionTests.cpp357 const glu::DataType scalarType = glu::getDataTypeScalarType(basicType); in operator <<() local
368 switch (scalarType) in operator <<()
2096 const glu::DataType scalarType = scalarTypes[scalarTypeNdx]; in addFunctionCases() local
2098 if ((!floatTypes && scalarType == glu::TYPE_FLOAT) || in addFunctionCases()
2099 (!intTypes && scalarType == glu::TYPE_INT) || in addFunctionCases()
2100 (!uintTypes && scalarType == glu::TYPE_UINT)) in addFunctionCases()
2110 …group->addChild(new TestClass(parent->getContext(), glu::DataType(scalarType + vecSize - 1), glu::… in addFunctionCases()
/external/deqp/external/vulkancts/modules/vulkan/ssbo/
DvktSSBOLayoutCase.cpp766 const glu::DataType scalarType = glu::getDataTypeScalarType(entry.type); in generateValue() local
775 const size_t compSize = getDataTypeByteSize(scalarType); in generateValue()
797 switch (scalarType) in generateValue()
1217 const glu::DataType scalarType = glu::getDataTypeScalarType(basicType); in generateImmScalarVectorSrc() local
1219 const size_t compSize = getDataTypeByteSize(scalarType); in generateImmScalarVectorSrc()
1231 switch (scalarType) in generateImmScalarVectorSrc()
1629 glu::DataType scalarType = glu::getDataTypeScalarType(dstEntry.type); in copyBufferVarData() local
1630 const size_t compSize = getDataTypeByteSize(scalarType); in copyBufferVarData()
1782 bool compareComponents (glu::DataType scalarType, const void* ref, const void* res, int numComps) in compareComponents() argument
1784 if (scalarType == glu::TYPE_FLOAT) in compareComponents()
[all …]
/external/deqp/external/openglcts/modules/common/
DglcShaderLibrary.cpp742 DataType scalarType = getDataTypeScalarType(expectedDataType); in parseValueElement() local
757 if (scalarType == TYPE_FLOAT) in parseValueElement()
770 else if (scalarType == TYPE_INT || scalarType == TYPE_UINT) in parseValueElement()
785 DE_ASSERT(scalarType == TYPE_BOOL); in parseValueElement()
/external/llvm-project/mlir/include/mlir/Dialect/SPIRV/
DLayoutUtils.h74 static Size getScalarTypeAlignment(Type scalarType);
/external/skia/src/sksl/
DSkSLBuiltinTypes.cpp28 const Type& scalarType, in MakeLiteralType() argument
30 return std::unique_ptr<Type>(new Type(name, scalarType, priority)); in MakeLiteralType()
DSkSLBuiltinTypes.h138 static std::unique_ptr<Type> MakeLiteralType(const char* name, const Type& scalarType,
/external/deqp/framework/opengl/
DgluShaderUtil.cpp1000 DataType getDataTypeVector (DataType scalarType, int size) in getDataTypeVector() argument
1003 switch (scalarType) in getDataTypeVector()
1015 return (DataType)((int)scalarType + size - 1); in getDataTypeVector()
DgluShaderLibrary.cpp926 DataType scalarType = getDataTypeScalarType(expectedDataType); in parseValueElement() local
941 if (scalarType == TYPE_FLOAT) in parseValueElement()
954 else if (scalarType == TYPE_INT || scalarType == TYPE_UINT) in parseValueElement()
969 DE_ASSERT(scalarType == TYPE_BOOL); in parseValueElement()
/external/deqp/modules/gles3/functional/
Des3fShaderCommonFunctionTests.cpp282 const glu::DataType scalarType = glu::getDataTypeScalarType(basicType); in operator <<() local
293 switch (scalarType) in operator <<()
1610 const glu::DataType scalarType = scalarTypes[scalarTypeNdx]; in addFunctionCases() local
1612 if ((!floatTypes && scalarType == glu::TYPE_FLOAT) || in addFunctionCases()
1613 (!intTypes && scalarType == glu::TYPE_INT) || in addFunctionCases()
1614 (!uintTypes && scalarType == glu::TYPE_UINT)) in addFunctionCases()
1622 …group->addChild(new TestClass(parent->getContext(), glu::DataType(scalarType + vecSize - 1), glu::… in addFunctionCases()
Des3fTransformFeedbackTests.cpp728 glu::DataType scalarType = glu::getDataTypeScalarType(type); in compareTransformFeedbackOutput() local
743 if (scalarType == glu::TYPE_FLOAT) in compareTransformFeedbackOutput()
1123 glu::DataType scalarType = glu::getDataTypeScalarType(attrib->type.getBasicType()); in runTest() local
1131 …if (scalarType == glu::TYPE_FLOAT) gl.vertexAttribPointer (loc, numComponents, GL_FLOAT, GL_FALSE… in runTest()
1132 …else if (scalarType == glu::TYPE_INT) gl.vertexAttribIPointer (loc, numComponents, GL_INT, m_input… in runTest()
1133 …else if (scalarType == glu::TYPE_UINT) gl.vertexAttribIPointer (loc, numComponents, GL_UNSIGNED_IN… in runTest()
/external/deqp/external/vulkancts/modules/vulkan/ubo/
DvktUniformBlockCase.cpp740 glu::DataType scalarType = glu::getDataTypeScalarType(entry.type); in generateValue() local
746 const size_t compSize = getDataTypeByteSize(scalarType); in generateValue()
762 switch (scalarType) in generateValue()
1200 glu::DataType scalarType = glu::getDataTypeScalarType(entry.type); in generateValueSrc() local
1204 const size_t compSize = getDataTypeByteSize(scalarType); in generateValueSrc()
1214 DE_ASSERT(scalarType == glu::TYPE_FLOAT); in generateValueSrc()
1240 switch (scalarType) in generateValueSrc()

12