1 /*-------------------------------------------------------------------------
2 * OpenGL Conformance Test Suite
3 * -----------------------------
5 * Copyright (c) 2016 Google Inc.
6 * Copyright (c) 2016 The Khronos Group Inc.
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
12 * http://www.apache.org/licenses/LICENSE-2.0
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.
22 * \brief OpenGL 4.x Test Packages.
23 */ /*-------------------------------------------------------------------*/
25 #include "gl4cTestPackages.hpp"
27 #include "gl4cBufferStorageTests.hpp"
28 #include "gl4cClipControlTests.hpp"
29 #include "gl4cComputeShaderTests.hpp"
30 #include "gl4cConditionalRenderInvertedTests.hpp"
31 #include "gl4cContextFlushControlTests.hpp"
32 #include "gl4cCopyImageTests.hpp"
33 #include "gl4cDirectStateAccessTests.hpp"
34 #include "gl4cES31CompatibilityTests.hpp"
35 #include "gl4cEnhancedLayoutsTests.hpp"
36 #include "gl4cGPUShaderFP64Tests.hpp"
37 #include "gl4cGetTextureSubImageTests.hpp"
38 #include "gl4cIncompleteTextureAccessTests.hpp"
39 #include "gl4cIndirectParametersTests.hpp"
40 #include "gl4cKHRDebugTests.hpp"
41 #include "gl4cMapBufferAlignmentTests.hpp"
42 #include "gl4cMultiBindTests.hpp"
43 #include "gl4cParallelShaderCompileTests.hpp"
44 #include "gl4cPostDepthCoverageTests.hpp"
45 #include "gl4cProgramInterfaceQueryTests.hpp"
46 #include "gl4cRobustnessTests.hpp"
47 #include "gl4cShaderAtomicCountersTests.hpp"
48 #include "gl4cShaderImageLoadStoreTests.hpp"
49 #include "gl4cShaderImageSizeTests.hpp"
50 #include "gl4cShaderStorageBufferObjectTests.hpp"
51 #include "gl4cShaderSubroutineTests.hpp"
52 #include "gl4cShaderTextureImageSamplesTests.hpp"
53 #include "gl4cShadingLanguage420PackTests.hpp"
54 #include "gl4cSparseBufferTests.hpp"
55 #include "gl4cSparseTexture2Tests.hpp"
56 #include "gl4cSparseTextureClampTests.hpp"
57 #include "gl4cSparseTextureTests.hpp"
58 #include "gl4cStencilTexturingTests.hpp"
59 #include "gl4cSyncTests.hpp"
60 #include "gl4cTextureBarrierTests.hpp"
61 #include "gl4cTextureFilterMinmaxTests.hpp"
62 #include "gl4cTextureGatherTests.hpp"
63 #include "gl4cTextureViewTests.hpp"
64 #include "gl4cVertexAttrib64BitTest.hpp"
65 #include "gl4cVertexAttribBindingTests.hpp"
66 #include "glcBlendEquationAdvancedTests.hpp"
67 #include "glcInfoTests.hpp"
68 #include "glcRobustBufferAccessBehaviorTests.hpp"
69 #include "glcSampleVariablesTests.hpp"
70 #include "glcShaderLibrary.hpp"
71 #include "glcShaderMultisampleInterpolationTests.hpp"
72 #include "glcViewportArrayTests.hpp"
74 #include "../gles31/es31cArrayOfArraysTests.hpp"
75 #include "../gles31/es31cDrawIndirectTests.hpp"
76 #include "../gles31/es31cExplicitUniformLocationTest.hpp"
77 #include "../gles31/es31cLayoutBindingTests.hpp"
78 #include "../gles31/es31cSampleShadingTests.hpp"
79 #include "../gles31/es31cSeparateShaderObjsTests.hpp"
80 #include "../gles31/es31cShaderBitfieldOperationTests.hpp"
81 #include "../glesext/draw_elements_base_vertex/esextcDrawElementsBaseVertexTests.hpp"
82 #include "../glesext/geometry_shader/esextcGeometryShaderTests.hpp"
83 #include "../glesext/gpu_shader5/esextcGPUShader5Tests.hpp"
84 #include "../glesext/tessellation_shader/esextcTessellationShaderTests.hpp"
85 #include "../glesext/texture_border_clamp/esextcTextureBorderClampTests.hpp"
86 #include "../glesext/texture_buffer/esextcTextureBufferTests.hpp"
87 #include "../glesext/texture_cube_map_array/esextcTextureCubeMapArrayTests.hpp"
94 GL40TestPackage::GL40TestPackage(tcu::TestContext& testCtx, const char* packageName, const char* description,
95 glu::ContextType renderContextType)
96 : GL33TestPackage(testCtx, packageName, packageName, renderContextType)
101 GL40TestPackage::~GL40TestPackage(void)
105 void GL40TestPackage::init(void)
107 // Call init() in parent - this creates context.
108 GL33TestPackage::init();
112 glcts::ExtParameters extParams(glu::GLSL_VERSION_400, glcts::EXTENSIONTYPE_NONE);
113 addChild(new glcts::DrawElementsBaseVertexTests(getContext(), extParams));
114 addChild(new gl4cts::GPUShaderFP64Tests(getContext()));
115 addChild(new gl4cts::TextureGatherTests(getContext()));
116 addChild(new glcts::DrawIndirectTestsGL40(getContext()));
117 addChild(new gl4cts::ClipControlTests(getContext(), gl4cts::ClipControlTests::API_GL_ARB_clip_control));
118 addChild(new gl4cts::ShaderSubroutineTests(getContext()));
120 new gl4cts::TextureBarrierTests(getContext(), gl4cts::TextureBarrierTests::API_GL_ARB_texture_barrier));
125 TestPackage::deinit();
132 GL41TestPackage::GL41TestPackage(tcu::TestContext& testCtx, const char* packageName, const char* description,
133 glu::ContextType renderContextType)
134 : GL40TestPackage(testCtx, packageName, packageName, renderContextType)
139 GL41TestPackage::~GL41TestPackage(void)
143 void GL41TestPackage::init(void)
145 // Call init() in parent - this creates context.
146 GL40TestPackage::init();
150 addChild(new gl4cts::VertexAttrib64BitTests(getContext()));
151 glcts::ExtParameters extParams(glu::GLSL_VERSION_410, glcts::EXTENSIONTYPE_NONE);
152 addChild(new glcts::ViewportArrayTests(getContext(), extParams));
157 TestPackage::deinit();
164 GL42TestPackage::GL42TestPackage(tcu::TestContext& testCtx, const char* packageName, const char* description,
165 glu::ContextType renderContextType)
166 : GL41TestPackage(testCtx, packageName, packageName, renderContextType)
171 GL42TestPackage::~GL42TestPackage(void)
175 void GL42TestPackage::init(void)
177 // Call init() in parent - this creates context.
178 GL41TestPackage::init();
182 addChild(new gl4cts::MapBufferAlignmentTests(getContext()));
183 addChild(new gl4cts::ShaderAtomicCountersTests(getContext()));
184 addChild(new gl4cts::ShaderImageLoadStoreTests(getContext()));
185 addChild(new gl4cts::ShadingLanguage420PackTests(getContext()));
186 addChild(new gl4cts::TextureViewTests(getContext()));
191 TestPackage::deinit();
198 GL43TestPackage::GL43TestPackage(tcu::TestContext& testCtx, const char* packageName, const char* description,
199 glu::ContextType renderContextType)
200 : GL42TestPackage(testCtx, packageName, packageName, renderContextType)
205 GL43TestPackage::~GL43TestPackage(void)
209 void GL43TestPackage::init(void)
211 // Call init() in parent - this creates context.
212 GL42TestPackage::init();
216 addChild(new glcts::ArrayOfArraysTestGroupGL(getContext()));
217 addChild(new gl4cts::CopyImageTests(getContext()));
218 addChild(new glcts::DrawIndirectTestsGL43(getContext()));
219 addChild(new gl4cts::KHRDebugTests(getContext()));
220 addChild(new gl4cts::ProgramInterfaceQueryTests(getContext()));
221 addChild(new gl4cts::ComputeShaderTests(getContext()));
222 addChild(new deqp::RobustBufferAccessBehaviorTests(getContext()));
223 addChild(new gl4cts::ShaderStorageBufferObjectTests(getContext()));
224 addChild(new gl4cts::VertexAttribBindingTests(getContext()));
225 addChild(new gl4cts::ShaderImageSizeTests(getContext()));
226 addChild(new glcts::ExplicitUniformLocationGLTests(getContext()));
227 addChild(new glcts::BlendEquationAdvancedTests(getContext(), glu::GLSL_VERSION_430));
228 addChild(new glcts::ShaderBitfieldOperationTests(getContext(), glu::GLSL_VERSION_430));
229 addChild(new gl4cts::StencilTexturingTests(getContext()));
230 addChild(new gl4cts::SparseBufferTests(getContext()));
231 addChild(new gl4cts::SparseTextureTests(getContext()));
232 addChild(new gl4cts::IndirectParametersTests(getContext()));
237 TestPackage::deinit();
244 class GL44ShaderTests : public deqp::TestCaseGroup
247 GL44ShaderTests(deqp::Context& context) : TestCaseGroup(context, "shaders44", "Shading Language Tests")
254 new deqp::ShaderLibraryGroup(m_context, "preprocessor", "Preprocessor Tests", "gl44/preprocessor.test"));
258 GL44TestPackage::GL44TestPackage(tcu::TestContext& testCtx, const char* packageName, const char* description,
259 glu::ContextType renderContextType)
260 : GL43TestPackage(testCtx, packageName, packageName, renderContextType)
265 GL44TestPackage::~GL44TestPackage(void)
269 void GL44TestPackage::init(void)
271 // Call init() in parent - this creates context.
272 GL43TestPackage::init();
276 addChild(new GL44ShaderTests(getContext()));
277 addChild(new gl4cts::BufferStorageTests(getContext()));
278 addChild(new gl4cts::EnhancedLayoutsTests(getContext()));
279 addChild(new glcts::LayoutBindingTests(getContext(), glu::GLSL_VERSION_440));
280 addChild(new gl4cts::MultiBindTests(getContext()));
281 addChild(new glcts::SeparateShaderObjsTests(getContext(), glu::GLSL_VERSION_440));
282 addChild(new glcts::SampleShadingTests(getContext(), glu::GLSL_VERSION_440));
283 addChild(new deqp::SampleVariablesTests(getContext(), glu::GLSL_VERSION_440));
284 addChild(new deqp::ShaderMultisampleInterpolationTests(getContext(), glu::GLSL_VERSION_440));
285 addChild(new glcts::ShaderTextureImageSamplesTests(getContext()));
287 glcts::ExtParameters extParams(glu::GLSL_VERSION_440, glcts::EXTENSIONTYPE_NONE);
288 addChild(new glcts::GeometryShaderTests(getContext(), extParams));
289 addChild(new glcts::GPUShader5Tests(getContext(), extParams));
290 addChild(new glcts::TessellationShaderTests(getContext(), extParams));
291 addChild(new glcts::TextureCubeMapArrayTests(getContext(), extParams));
292 addChild(new glcts::TextureBorderClampTests(getContext(), extParams));
293 addChild(new glcts::TextureBufferTests(getContext(), extParams));
295 //addChild(new gl4cts::ContextFlushControl::Tests(getContext()));
300 TestPackage::deinit();
307 GL45TestPackage::GL45TestPackage(tcu::TestContext& testCtx, const char* packageName, const char* description,
308 glu::ContextType renderContextType)
309 : GL44TestPackage(testCtx, packageName, packageName, renderContextType)
314 GL45TestPackage::~GL45TestPackage(void)
318 void GL45TestPackage::init(void)
320 // Call init() in parent - this creates context.
321 GL44TestPackage::init();
325 addChild(new gl4cts::ClipControlTests(getContext(), gl4cts::ClipControlTests::API_GL_45core));
326 addChild(new gl4cts::DirectStateAccess::Tests(getContext()));
327 addChild(new gl4cts::GetTextureSubImage::Tests(getContext()));
328 addChild(new gl4cts::RobustnessTests(getContext()));
329 addChild(new gl4cts::TextureBarrierTests(getContext(), gl4cts::TextureBarrierTests::API_GL_45core));
330 addChild(new gl4cts::ConditionalRenderInverted::Tests(getContext()));
331 addChild(new gl4cts::Sync::Tests(getContext()));
332 addChild(new gl4cts::IncompleteTextureAccess::Tests(getContext()));
333 addChild(new gl4cts::ParallelShaderCompileTests(getContext()));
334 addChild(new gl4cts::PostDepthCoverage(getContext()));
335 addChild(new gl4cts::SparseTexture2Tests(getContext()));
336 addChild(new gl4cts::SparseTextureClampTests(getContext()));
337 addChild(new gl4cts::TextureFilterMinmax(getContext()));
342 TestPackage::deinit();