/external/deqp/external/vulkancts/modules/vulkan/subgroups/ |
vktSubgroupsBallotTests.cpp | 56 void initFrameBufferPrograms(SourceCollections& programCollection, CaseDefinition caseDef) 64 if (VK_SHADER_STAGE_VERTEX_BIT != caseDef.shaderStage) 67 if (VK_SHADER_STAGE_VERTEX_BIT == caseDef.shaderStage) 205 else if (VK_SHADER_STAGE_GEOMETRY_BIT == caseDef.shaderStage) 356 else if (VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT == caseDef.shaderStage) 537 else if (VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT == caseDef.shaderStage) 702 void initPrograms(SourceCollections& programCollection, CaseDefinition caseDef) 704 if (VK_SHADER_STAGE_COMPUTE_BIT == caseDef.shaderStage) 881 void supportedCheck (Context& context, CaseDefinition caseDef) 883 DE_UNREF(caseDef); [all...] |
vktSubgroupsBallotBroadcastTests.cpp | 79 std::string getBodySource(CaseDefinition caseDef) 86 if (OPTYPE_BROADCAST == caseDef.opType) 93 << " " << subgroups::getFormatNameForGLSL(caseDef.format) 139 void initFrameBufferPrograms(SourceCollections& programCollection, CaseDefinition caseDef) 145 if (VK_SHADER_STAGE_VERTEX_BIT != caseDef.shaderStage) 148 std::string bdyStr = getBodySource(caseDef); 150 if (VK_SHADER_STAGE_VERTEX_BIT == caseDef.shaderStage) 159 << " " << subgroups::getFormatNameForGLSL(caseDef.format) << " data1[" << subgroups::maxSupportedSubgroupSize() << "];\n" 172 else if (VK_SHADER_STAGE_GEOMETRY_BIT == caseDef.shaderStage) 183 << " " << subgroups::getFormatNameForGLSL(caseDef.format) << " data1[" <<subgroups::maxSupportedSubgroupSize() << "];\n [all...] |
vktSubgroupsBallotOtherTests.cpp | 93 std::string getBodySource(CaseDefinition caseDef) 111 switch (caseDef.opType) 237 void initFrameBufferPrograms(SourceCollections& programCollection, CaseDefinition caseDef) 243 if (VK_SHADER_STAGE_VERTEX_BIT != caseDef.shaderStage) 246 std::string bdyStr = getBodySource(caseDef); 248 if (VK_SHADER_STAGE_VERTEX_BIT == caseDef.shaderStage) 266 else if (VK_SHADER_STAGE_GEOMETRY_BIT == caseDef.shaderStage) 287 else if (VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT == caseDef.shaderStage) 312 else if (VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT == caseDef.shaderStage) 336 void initPrograms(SourceCollections& programCollection, CaseDefinition caseDef) [all...] |
vktSubgroupsBuiltinMaskVarTests.cpp | 62 std::string subgroupComparison (const CaseDefinition& caseDef) 64 if ("gl_SubgroupEqMask" == caseDef.varName) 66 if (VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT == caseDef.shaderStage) 71 else if ("gl_SubgroupGeMask" == caseDef.varName) 73 if (VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT == caseDef.shaderStage) 78 else if ("gl_SubgroupGtMask" == caseDef.varName) 80 if (VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT == caseDef.shaderStage) 85 else if ("gl_SubgroupLeMask" == caseDef.varName) 87 if (VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT == caseDef.shaderStage) 92 else if ("gl_SubgroupLtMask" == caseDef.varName [all...] |
vktSubgroupsShapeTests.cpp | 78 void initFrameBufferPrograms (SourceCollections& programCollection, CaseDefinition caseDef) 82 std::string extension = (OPTYPE_CLUSTERED == caseDef.opType) ? 88 if (VK_SHADER_STAGE_VERTEX_BIT != caseDef.shaderStage) 96 if (OPTYPE_CLUSTERED == caseDef.opType) 144 if (VK_SHADER_STAGE_VERTEX_BIT == caseDef.shaderStage) 162 else if (VK_SHADER_STAGE_GEOMETRY_BIT == caseDef.shaderStage) 184 else if (VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT == caseDef.shaderStage) 209 else if (VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT == caseDef.shaderStage) 234 void initPrograms(SourceCollections& programCollection, CaseDefinition caseDef) 236 std::string extension = (OPTYPE_CLUSTERED == caseDef.opType) [all...] |
vktSubgroupsBuiltinVarTests.cpp | 322 void initFrameBufferPrograms (SourceCollections& programCollection, CaseDefinition caseDef) 369 if (VK_SHADER_STAGE_VERTEX_BIT != caseDef.shaderStage) 372 if (VK_SHADER_STAGE_VERTEX_BIT == caseDef.shaderStage) 449 else if (VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT == caseDef.shaderStage) 655 else if (VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT == caseDef.shaderStage) 861 else if (VK_SHADER_STAGE_GEOMETRY_BIT == caseDef.shaderStage) 956 void initPrograms(SourceCollections& programCollection, CaseDefinition caseDef) 958 if (VK_SHADER_STAGE_COMPUTE_BIT == caseDef.shaderStage) [all...] |
vktSubgroupsClusteredTests.cpp | 314 std::string getBodySource(CaseDefinition caseDef) 325 << " " << subgroups::getFormatNameForGLSL(caseDef.format) << " op = " 326 << getOpTypeName(caseDef.opType) + "(data[gl_SubgroupInvocationID], clusterSize);\n" 329 << " " << subgroups::getFormatNameForGLSL(caseDef.format) << " ref = " 330 << getIdentity(caseDef.opType, caseDef.format) << ";\n" 335 << " ref = " << getOpTypeOperation(caseDef.opType, caseDef.format, "ref", "data[index]") << ";\n" 340 << " if (!" << getCompare(caseDef.opType, caseDef.format, "ref", "op") << ")\n [all...] |
vktSubgroupsQuadTests.cpp | 86 void initFrameBufferPrograms (SourceCollections& programCollection, CaseDefinition caseDef) 93 if (VK_SHADER_STAGE_VERTEX_BIT != caseDef.shaderStage) 101 if (VK_SHADER_STAGE_VERTEX_BIT == caseDef.shaderStage) 111 << " " << subgroups::getFormatNameForGLSL(caseDef.format) << " data[" << subgroups::maxSupportedSubgroupSize() << "];\n" 117 << swapTable[caseDef.opType]; 119 if (OPTYPE_QUAD_BROADCAST == caseDef.opType) 121 vertexSrc << " " << subgroups::getFormatNameForGLSL(caseDef.format) << " op = " 122 << getOpTypeName(caseDef.opType) << "(data[gl_SubgroupInvocationID], " << caseDef.direction << ");\n" 123 << " uint otherID = (gl_SubgroupInvocationID & ~0x3) + " << caseDef.direction << ";\n" [all...] |
vktSubgroupsShuffleTests.cpp | 91 const std::string DeclSource(CaseDefinition caseDef, int baseBinding) 96 " " + subgroups::getFormatNameForGLSL(caseDef.format) + " data1[];\n" 104 const std::string TestSource(CaseDefinition caseDef) 116 " " + subgroups::getFormatNameForGLSL(caseDef.format) + " op = " 117 + getOpTypeName(caseDef.opType) + "(data1[gl_SubgroupInvocationID], id_in);\n" 118 " uint id = " + idTable[caseDef.opType] + ";\n" 131 void initFrameBufferPrograms (SourceCollections& programCollection, CaseDefinition caseDef) 137 if (VK_SHADER_STAGE_VERTEX_BIT != caseDef.shaderStage) 141 (OPTYPE_SHUFFLE == caseDef.opType || OPTYPE_SHUFFLE_XOR == caseDef.opType) [all...] |
vktSubgroupsVoteTests.cpp | 109 void initFrameBufferPrograms (SourceCollections& programCollection, CaseDefinition caseDef) 113 VK_FORMAT_R8_USCALED == caseDef.format || VK_FORMAT_R8G8_USCALED == caseDef.format || VK_FORMAT_R8G8B8_USCALED == caseDef.format || VK_FORMAT_R8G8B8A8_USCALED == caseDef.format; 115 if (VK_SHADER_STAGE_FRAGMENT_BIT != caseDef.shaderStage) 118 if (VK_SHADER_STAGE_FRAGMENT_BIT == caseDef.shaderStage) 129 else if (VK_SHADER_STAGE_VERTEX_BIT != caseDef.shaderStage) 133 (OPTYPE_ALL == caseDef.opType) ? 134 " result = " + getOpTypeName(caseDef.opType) [all...] |
vktSubgroupsArithmeticTests.cpp | 392 void initFrameBufferPrograms (SourceCollections& programCollection, CaseDefinition caseDef) 400 if (VK_SHADER_STAGE_VERTEX_BIT != caseDef.shaderStage) 403 switch (caseDef.opType) 429 << " " << subgroups::getFormatNameForGLSL(caseDef.format) << " ref = " 430 << getIdentity(caseDef.opType, caseDef.format) << ";\n" 436 << " ref = " << getOpTypeOperation(caseDef.opType, caseDef.format, "ref", "data[index]") << ";\n" 439 << " tempResult = " << getCompare(caseDef.opType, caseDef.format, "ref" [all...] |
vktSubgroupsBasicTests.cpp | 286 void initFrameBufferPrograms(SourceCollections& programCollection, CaseDefinition caseDef) 291 if(VK_SHADER_STAGE_FRAGMENT_BIT != caseDef.shaderStage) 330 if (VK_SHADER_STAGE_FRAGMENT_BIT == caseDef.shaderStage) 408 else if (VK_SHADER_STAGE_VERTEX_BIT != caseDef.shaderStage) 411 if (OPTYPE_ELECT == caseDef.opType) 418 if (VK_SHADER_STAGE_VERTEX_BIT == caseDef.shaderStage) 511 else if (VK_SHADER_STAGE_GEOMETRY_BIT == caseDef.shaderStage) 617 else if (VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT == caseDef.shaderStage) 825 else if (VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT == caseDef.shaderStage) [all...] |
vktSubgroupsPartitionedTests.cpp | 401 string getTestString(const CaseDefinition &caseDef) 405 string fmt = subgroups::getFormatNameForGLSL(caseDef.format); 414 " " + fmt + " allResult = " + getOpTypeNamePartitioned(caseDef.opType) + "(data[gl_SubgroupInvocationID], allBallot);\n" 415 " " + fmt + " refResult = " + getOpTypeName(caseDef.opType) + "(data[gl_SubgroupInvocationID]);\n" 416 " if (" + getCompare(caseDef.opType, caseDef.format, "allResult", "refResult") + ") {\n" 425 " " + fmt + " allResult = " + getOpTypeNamePartitioned(caseDef.opType) + "(data[gl_SubgroupInvocationID], allBallot);\n" 426 " " + fmt + " refResult = " + getOpTypeName(caseDef.opType) + "(data[gl_SubgroupInvocationID]);\n" 427 " if (" + getCompare(caseDef.opType, caseDef.format, "allResult", "refResult") + ") {\n [all...] |
/external/deqp/external/vulkancts/modules/vulkan/tessellation/ |
vktTessellationLimitsTests.cpp | 73 tcu::TestStatus deviceLimitsTestCase(Context& context, const LimitsCaseDefinition caseDef) 85 switch (caseDef.limitType) 88 return expectGreaterOrEqual(log, caseDef.minimum, properties.limits.maxTessellationGenerationLevel); 90 return expectGreaterOrEqual(log, caseDef.minimum, properties.limits.maxTessellationPatchSize); 92 return expectGreaterOrEqual(log, caseDef.minimum, properties.limits.maxTessellationControlPerVertexInputComponents); 94 return expectGreaterOrEqual(log, caseDef.minimum, properties.limits.maxTessellationControlPerVertexOutputComponents); 96 return expectGreaterOrEqual(log, caseDef.minimum, properties.limits.maxTessellationControlPerPatchOutputComponents); 98 return expectGreaterOrEqual(log, caseDef.minimum, properties.limits.maxTessellationControlTotalOutputComponents); 100 return expectGreaterOrEqual(log, caseDef.minimum, properties.limits.maxTessellationEvaluationInputComponents); 102 return expectGreaterOrEqual(log, caseDef.minimum, properties.limits.maxTessellationEvaluationOutputComponents) [all...] |
vktTessellationCommonEdgeTests.cpp | 101 void initPrograms (vk::SourceCollections& programCollection, const CaseDefinition caseDef) 103 DE_ASSERT(caseDef.primitiveType == TESSPRIMITIVETYPE_TRIANGLES || caseDef.primitiveType == TESSPRIMITIVETYPE_QUADS); 127 const int numVertices = (caseDef.primitiveType == TESSPRIMITIVETYPE_TRIANGLES ? 3 : 4); 132 << (caseDef.caseType == CASETYPE_PRECISE ? "#extension GL_EXT_gpu_shader5 : require\n" : "") 141 << (caseDef.caseType == CASETYPE_PRECISE ? "precise gl_TessLevelOuter;\n\n" : "") 149 << (caseDef.primitiveType == TESSPRIMITIVETYPE_TRIANGLES ? 153 : caseDef.primitiveType == TESSPRIMITIVETYPE_QUADS ? 167 if (caseDef.primitiveType == TESSPRIMITIVETYPE_TRIANGLES) 173 else if (caseDef.primitiveType == TESSPRIMITIVETYPE_QUADS [all...] |
vktTessellationMiscDrawTests.cpp | 71 CaseDefinition caseDef; 72 caseDef.primitiveType = primitiveType; 73 caseDef.spacingMode = spacingMode; 74 caseDef.referenceImagePathPrefix = referenceImagePathPrefix; 75 return caseDef; 128 tcu::TestStatus runTest (Context& context, const CaseDefinition caseDef) 138 const std::vector<TessLevels> tessLevelCases = genTessLevelCases(caseDef.spacingMode); 139 const std::vector<tcu::Vec2> vertexData = genVertexPositions(caseDef.primitiveType); 140 const deUint32 inPatchSize = (caseDef.primitiveType == TESSPRIMITIVETYPE_TRIANGLES ? 3 : 4); 226 << "Tessellation levels: " << getTessellationLevelsString(tessLevelCases[tessLevelCaseNdx], caseDef.primitiveType [all...] |
vktTessellationShaderInputOutputTests.cpp | 213 void initPrograms (vk::SourceCollections& programCollection, const CaseDefinition caseDef) 237 << "layout(vertices = " << caseDef.outPatchSize << ") out;\n" 244 << " in_te_attr[gl_InvocationID] = in_tc_attr[gl_InvocationID*" << caseDef.inPatchSize << "/" << caseDef.outPatchSize << "];\n" 272 << " highp float y = gl_TessCoord.y - in_te_attr[int(round(gl_TessCoord.x*float(" << caseDef.outPatchSize << "-1)))];\n" 297 tcu::TestStatus test (Context& context, const CaseDefinition caseDef) 301 vertexData.reserve(caseDef.inPatchSize); 302 for (int i = 0; i < caseDef.inPatchSize; ++i) 304 const float f = static_cast<float>(i) / static_cast<float>(caseDef.inPatchSize - 1); 311 tcu::ImageIO::loadPNG(referenceImage, context.getTestContext().getArchive(), caseDef.referenceImagePath.c_str()) [all...] |
vktTessellationUserDefinedIO.cpp | 437 UserDefinedIOTest (tcu::TestContext& testCtx, const std::string& name, const std::string& description, const CaseDefinition caseDef); 452 UserDefinedIOTest::UserDefinedIOTest (tcu::TestContext& testCtx, const std::string& name, const std::string& description, const CaseDefinition caseDef) 454 , m_caseDef (caseDef) 742 const CaseDefinition caseDef, 751 UserDefinedIOTestInstance::UserDefinedIOTestInstance (Context& context, const CaseDefinition caseDef, const std::vector<de::SharedPtr<TopLevelObject> >& tesInputs) 753 , m_caseDef (caseDef) [all...] |
vktTessellationInvarianceTests.cpp | 558 BaseTestInstance (Context& context, const CaseDefinition caseDef, const int numPatchesToDraw); 588 BaseTestInstance::BaseTestInstance (Context& context, const CaseDefinition caseDef, const int numPatchesToDraw) 590 , m_caseDef (caseDef) 595 , m_maxNumPrimitivesInDrawCall (NUM_EXTRA_TESS_GEOM_INVOCATIONS * computeMaxPrimitiveCount(m_numPatchesToDraw, caseDef.primitiveType, caseDef.spacingMode, caseDef.usePointMode, m_singleOuterEdgeLevels)) 723 OuterEdgeDivisionTestInstance (Context& context, const CaseDefinition caseDef) : BaseTestInstance (context, caseDef, 10) {} [all...] |
/external/deqp/external/vulkancts/modules/vulkan/image/ |
vktImageMultisampleLoadStoreTests.cpp | 64 struct CaseDef 79 void initPrograms (SourceCollections& programCollection, const CaseDef caseDef) 81 const int dimension = (caseDef.singleLayerBind ? caseDef.texture.layerDimension() : caseDef.texture.dimension()); 84 const ImageType usedImageType = (caseDef.singleLayerBind ? getImageTypeForSingleLayer(caseDef.texture.type()) : caseDef.texture.type()); 85 const std::string formatQualifierStr = getShaderImageFormatQualifier(mapVkFormat(caseDef.format)) [all...] |
vktImageMutableTests.cpp | 102 struct CaseDef 156 static VkClearValue getClearValueInt(const CaseDef& caseDef, deUint32 colorTableIndex) 161 if (caseDef.upload == UPLOAD_DRAW) 174 if (caseDef.upload == UPLOAD_CLEAR || caseDef.upload == UPLOAD_COPY) 175 format = caseDef.imageFormat; 177 format = caseDef.viewFormat; 274 bool isSRGBConversionRequired(const CaseDef& caseDef) [all...] |
/external/deqp/external/vulkancts/modules/vulkan/fragment_ops/ |
vktFragmentOperationsScissorTests.cpp | 79 struct CaseDef 299 void initPrograms (SourceCollections& programCollection, const CaseDef caseDef) 301 DE_UNREF(caseDef); 305 const bool usePointSize = (caseDef.primitive == TEST_PRIMITIVE_POINTS); 349 ScissorRenderer (Context& context, const CaseDef caseDef, const IVec2& renderSize, const VkFormat colorFormat, const Vec4& primitiveColor, const Vec4& clearColor) 355 , m_vertices (genVertices(caseDef.primitive, caseDef.renderArea, m_primitiveColor)) 357 , m_topology (getTopology(caseDef.primitive) [all...] |
/external/deqp/external/vulkancts/modules/vulkan/pipeline/ |
vktPipelineFramebufferAttachmentTests.cpp | 74 struct CaseDef 313 void initColorPrograms (SourceCollections& programCollection, const CaseDef caseDef) 315 (void)caseDef; 352 tcu::PixelBufferAccess getExpectedData (tcu::TextureLevel& textureLevel, const CaseDef& caseDef) 355 const int renderDepth = deMax32(caseDef.renderSize.z(), caseDef.numLayers); 363 if (x < caseDef.renderSize.x() && y < caseDef.renderSize.y() && z < renderDepth [all...] |
vktPipelineRenderToImageTests.cpp | 107 struct CaseDef 744 deUint32 getMemoryTypeNdx (Context& context, const CaseDef& caseDef) 756 const IVec4 imageSize = getMaxImageSize(caseDef.viewType, caseDef.imageSizeHint); 759 colorImage = makeImage(vk, device, getImageCreateFlags(caseDef.viewType), getImageType(caseDef.viewType), caseDef.colorFormat, 766 VkDeviceSize getMaxDeviceHeapSize (Context& context, const CaseDef& caseDef) [all...] |