• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 "vktSubgroupsBallotMasksTests.hpp"
40 #include "vktSubgroupsSizeControlTests.hpp"
41 #include "vktSubgroupUniformControlFlowTests.hpp"
42 #include "vktSubgroupsMultipleDispatchesUniformSubgroupSizeTests.hpp"
43 #include "vktTestGroupUtil.hpp"
44 
45 namespace vkt
46 {
47 namespace subgroups
48 {
49 
50 namespace
51 {
52 
createChildren(tcu::TestCaseGroup * subgroupsTests)53 void createChildren(tcu::TestCaseGroup* subgroupsTests)
54 {
55 	tcu::TestContext& testCtx = subgroupsTests->getTestContext();
56 
57 	subgroupsTests->addChild(createSubgroupsBuiltinVarTests(testCtx));
58 	subgroupsTests->addChild(createSubgroupsBuiltinMaskVarTests(testCtx));
59 	subgroupsTests->addChild(createSubgroupsBasicTests(testCtx));
60 	subgroupsTests->addChild(createSubgroupsVoteTests(testCtx));
61 	subgroupsTests->addChild(createSubgroupsBallotTests(testCtx));
62 	subgroupsTests->addChild(createSubgroupsBallotBroadcastTests(testCtx));
63 	subgroupsTests->addChild(createSubgroupsBallotOtherTests(testCtx));
64 	subgroupsTests->addChild(createSubgroupsArithmeticTests(testCtx));
65 	subgroupsTests->addChild(createSubgroupsClusteredTests(testCtx));
66 	subgroupsTests->addChild(createSubgroupsPartitionedTests(testCtx));
67 	subgroupsTests->addChild(createSubgroupsShuffleTests(testCtx));
68 	subgroupsTests->addChild(createSubgroupsQuadTests(testCtx));
69 	subgroupsTests->addChild(createSubgroupsShapeTests(testCtx));
70 	subgroupsTests->addChild(createSubgroupsBallotMasksTests(testCtx));
71 	subgroupsTests->addChild(createMultipleDispatchesUniformSubgroupSizeTests(testCtx));
72 	subgroupsTests->addChild(createSubgroupsSizeControlTests(testCtx));
73 	subgroupsTests->addChild(createSubgroupUniformControlFlowTests(testCtx));
74 }
75 
76 } // anonymous
77 
createTests(tcu::TestContext & testCtx)78 tcu::TestCaseGroup* createTests(tcu::TestContext& testCtx)
79 {
80 	return createTestGroup(
81 			   testCtx, "subgroups", "Subgroups tests", createChildren);
82 }
83 
84 } // subgroups
85 } // vkt
86