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 "vktSubgroupsPartitionedTests.hpp"
36 #include "vktSubgroupsShuffleTests.hpp"
37 #include "vktSubgroupsQuadTests.hpp"
38 #include "vktSubgroupsShapeTests.hpp"
39 #include "vktTestGroupUtil.hpp"
40 
41 namespace vkt
42 {
43 namespace subgroups
44 {
45 
46 namespace
47 {
48 
createChildren(tcu::TestCaseGroup * subgroupsTests)49 void createChildren(tcu::TestCaseGroup* subgroupsTests)
50 {
51 	tcu::TestContext& testCtx = subgroupsTests->getTestContext();
52 
53 	subgroupsTests->addChild(createSubgroupsBuiltinVarTests(testCtx));
54 	subgroupsTests->addChild(createSubgroupsBuiltinMaskVarTests(testCtx));
55 	subgroupsTests->addChild(createSubgroupsBasicTests(testCtx));
56 	subgroupsTests->addChild(createSubgroupsVoteTests(testCtx));
57 	subgroupsTests->addChild(createSubgroupsBallotTests(testCtx));
58 	subgroupsTests->addChild(createSubgroupsBallotBroadcastTests(testCtx));
59 	subgroupsTests->addChild(createSubgroupsBallotOtherTests(testCtx));
60 	subgroupsTests->addChild(createSubgroupsArithmeticTests(testCtx));
61 	subgroupsTests->addChild(createSubgroupsClusteredTests(testCtx));
62 	subgroupsTests->addChild(createSubgroupsPartitionedTests(testCtx));
63 	subgroupsTests->addChild(createSubgroupsShuffleTests(testCtx));
64 	subgroupsTests->addChild(createSubgroupsQuadTests(testCtx));
65 	subgroupsTests->addChild(createSubgroupsShapeTests(testCtx));
66 }
67 
68 } // anonymous
69 
createTests(tcu::TestContext & testCtx)70 tcu::TestCaseGroup* createTests(tcu::TestContext& testCtx)
71 {
72 	return createTestGroup(
73 			   testCtx, "subgroups", "Subgroups tests", createChildren);
74 }
75 
76 } // subgroups
77 } // vkt
78