1 /*-------------------------------------------------------------------------
2 * drawElements Quality Program OpenGL ES 3.0 Module
3 * -------------------------------------------------
4 *
5 * Copyright 2014 The Android Open Source Project
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 *
19 *//*!
20 * \file
21 * \brief Performance tests.
22 *//*--------------------------------------------------------------------*/
23
24 #include "es3pPerformanceTests.hpp"
25
26 #include "es3pBlendTests.hpp"
27 #include "es3pTextureFormatTests.hpp"
28 #include "es3pTextureFilteringTests.hpp"
29 #include "es3pTextureCountTests.hpp"
30 #include "es3pShaderOperatorTests.hpp"
31 #include "es3pShaderControlStatementTests.hpp"
32 #include "es3pShaderCompilerTests.hpp"
33 #include "es3pShaderOptimizationTests.hpp"
34 #include "es3pRedundantStateChangeTests.hpp"
35 #include "es3pStateChangeCallTests.hpp"
36 #include "es3pStateChangeTests.hpp"
37 #include "es3pBufferDataUploadTests.hpp"
38 #include "es3pDepthTests.hpp"
39
40 namespace deqp
41 {
42 namespace gles3
43 {
44 namespace Performance
45 {
46
47 // TextureTestGroup
48
49 class TextureTestGroup : public TestCaseGroup
50 {
51 public:
TextureTestGroup(Context & context)52 TextureTestGroup(Context &context) : TestCaseGroup(context, "texture", "Texture Performance Tests")
53 {
54 }
55
init(void)56 virtual void init(void)
57 {
58 addChild(new TextureFormatTests(m_context));
59 addChild(new TextureFilteringTests(m_context));
60 addChild(new TextureCountTests(m_context));
61 }
62 };
63
64 // ShadersTestGroup
65
66 class ShadersTestGroup : public TestCaseGroup
67 {
68 public:
ShadersTestGroup(Context & context)69 ShadersTestGroup(Context &context) : TestCaseGroup(context, "shader", "Shader Performance Tests")
70 {
71 }
72
init(void)73 virtual void init(void)
74 {
75 addChild(new ShaderOperatorTests(m_context));
76 addChild(new ShaderControlStatementTests(m_context));
77 }
78 };
79
80 // APITests
81
82 class APITests : public TestCaseGroup
83 {
84 public:
APITests(Context & context)85 APITests(Context &context) : TestCaseGroup(context, "api", "API Performance Tests")
86 {
87 }
88
init(void)89 virtual void init(void)
90 {
91 addChild(new StateChangeCallTests(m_context));
92 addChild(new StateChangeTests(m_context));
93 addChild(new RedundantStateChangeTests(m_context));
94 }
95 };
96
97 // BufferTestGroup
98
99 class BufferTestGroup : public TestCaseGroup
100 {
101 public:
BufferTestGroup(Context & context)102 BufferTestGroup(Context &context) : TestCaseGroup(context, "buffer", "Buffer Performance Tests")
103 {
104 }
105
init(void)106 virtual void init(void)
107 {
108 addChild(new BufferDataUploadTests(m_context));
109 }
110 };
111
112 // PerformanceTests
113
PerformanceTests(Context & context)114 PerformanceTests::PerformanceTests(Context &context) : TestCaseGroup(context, "performance", "Performance Tests")
115 {
116 }
117
~PerformanceTests(void)118 PerformanceTests::~PerformanceTests(void)
119 {
120 }
121
init(void)122 void PerformanceTests::init(void)
123 {
124 addChild(new BlendTests(m_context));
125 addChild(new TextureTestGroup(m_context));
126 addChild(new ShadersTestGroup(m_context));
127 addChild(new ShaderCompilerTests(m_context));
128 addChild(new APITests(m_context));
129 addChild(new BufferTestGroup(m_context));
130 addChild(new DepthTests(m_context));
131 }
132
133 } // namespace Performance
134 } // namespace gles3
135 } // namespace deqp
136