1 /*------------------------------------------------------------------------ 2 * Vulkan Conformance Tests 3 * ------------------------ 4 * 5 * Copyright (c) 2017 The Khronos Group Inc. 6 * Copyright (c) 2017 Codeplay Software Ltd. 7 * 8 * Licensed under the Apache License, Version 2.0 (the "License"); 9 * you may not use this file except in compliance with the License. 10 * You may obtain a copy of the License at 11 * 12 * http://www.apache.org/licenses/LICENSE-2.0 13 * 14 * Unless required by applicable law or agreed to in writing, software 15 * distributed under the License is distributed on an "AS IS" BASIS, 16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 * See the License for the specific language governing permissions and 18 * limitations under the License. 19 * 20 */ /*! 21 * \file 22 * \brief Subgroups Tests 23 */ /*--------------------------------------------------------------------*/ 24 25 #include "vktSubgroupsTests.hpp" 26 #include "vktSubgroupsBuiltinVarTests.hpp" 27 #include "vktSubgroupsBuiltinMaskVarTests.hpp" 28 #include "vktSubgroupsBasicTests.hpp" 29 #include "vktSubgroupsVoteTests.hpp" 30 #include "vktSubgroupsBallotTests.hpp" 31 #include "vktSubgroupsBallotBroadcastTests.hpp" 32 #include "vktSubgroupsBallotOtherTests.hpp" 33 #include "vktSubgroupsArithmeticTests.hpp" 34 #include "vktSubgroupsClusteredTests.hpp" 35 #include "vktSubgroupsShuffleTests.hpp" 36 #include "vktSubgroupsQuadTests.hpp" 37 #include "vktSubgroupsShapeTests.hpp" 38 #include "vktSubgroupsBallotMasksTests.hpp" 39 #include "vktSubgroupsSizeControlTests.hpp" 40 #ifndef CTS_USES_VULKANSC 41 #include "vktSubgroupsPartitionedTests.hpp" 42 #include "vktSubgroupUniformControlFlowTests.hpp" 43 #endif // CTS_USES_VULKANSC 44 #include "vktSubgroupsMultipleDispatchesUniformSubgroupSizeTests.hpp" 45 #include "vktTestGroupUtil.hpp" 46 47 namespace vkt 48 { 49 namespace subgroups 50 { 51 52 namespace 53 { 54 createChildren(tcu::TestCaseGroup * subgroupsTests)55void createChildren(tcu::TestCaseGroup* subgroupsTests) 56 { 57 tcu::TestContext& testCtx = subgroupsTests->getTestContext(); 58 59 subgroupsTests->addChild(createSubgroupsBuiltinVarTests(testCtx)); 60 subgroupsTests->addChild(createSubgroupsBuiltinMaskVarTests(testCtx)); 61 subgroupsTests->addChild(createSubgroupsBasicTests(testCtx)); 62 subgroupsTests->addChild(createSubgroupsVoteTests(testCtx)); 63 subgroupsTests->addChild(createSubgroupsBallotTests(testCtx)); 64 subgroupsTests->addChild(createSubgroupsBallotBroadcastTests(testCtx)); 65 subgroupsTests->addChild(createSubgroupsBallotOtherTests(testCtx)); 66 subgroupsTests->addChild(createSubgroupsArithmeticTests(testCtx)); 67 subgroupsTests->addChild(createSubgroupsClusteredTests(testCtx)); 68 #ifndef CTS_USES_VULKANSC 69 subgroupsTests->addChild(createSubgroupsPartitionedTests(testCtx)); 70 #endif 71 subgroupsTests->addChild(createSubgroupsShuffleTests(testCtx)); 72 subgroupsTests->addChild(createSubgroupsQuadTests(testCtx)); 73 subgroupsTests->addChild(createSubgroupsShapeTests(testCtx)); 74 subgroupsTests->addChild(createSubgroupsBallotMasksTests(testCtx)); 75 subgroupsTests->addChild(createMultipleDispatchesUniformSubgroupSizeTests(testCtx)); 76 subgroupsTests->addChild(createSubgroupsSizeControlTests(testCtx)); 77 #ifndef CTS_USES_VULKANSC 78 subgroupsTests->addChild(createSubgroupUniformControlFlowTests(testCtx)); 79 #endif // CTS_USES_VULKANSC 80 } 81 82 } // anonymous 83 createTests(tcu::TestContext & testCtx)84tcu::TestCaseGroup* createTests(tcu::TestContext& testCtx) 85 { 86 return createTestGroup( 87 testCtx, "subgroups", "Subgroups tests", createChildren); 88 } 89 90 } // subgroups 91 } // vkt 92