1 /*-------------------------------------------------------------------------
2 * drawElements Quality Program EGL Module
3 * ---------------------------------------
5 * Copyright 2014 The Android Open Source Project
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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.
21 * \brief Choose config tests.
22 *//*--------------------------------------------------------------------*/
24 #include "teglChooseConfigTests.hpp"
25 #include "teglChooseConfigReference.hpp"
26 #include "tcuTestLog.hpp"
27 #include "egluStrUtil.hpp"
28 #include "egluUtil.hpp"
29 #include "eglwLibrary.hpp"
30 #include "eglwEnums.hpp"
31 #include "deRandom.hpp"
32 #include "deStringUtil.hpp"
33 #include "deUniquePtr.hpp"
34 #include "deSTLUtil.hpp"
52 using eglu::ConfigInfo;
58 string configListToString (const Library& egl, const EGLDisplay& display, const vector<EGLConfig>& configs)
61 for (vector<EGLConfig>::const_iterator cfgIter = configs.begin(); cfgIter != configs.end(); cfgIter++)
63 EGLConfig config = *cfgIter;
64 EGLint configId = eglu::getConfigID(egl, display, config);
66 if (str.length() != 0)
69 str += de::toString(configId);
74 void logConfigAttrib (TestLog& log, EGLenum attrib, EGLint value)
76 const std::string attribStr = eglu::getConfigAttribName(attrib);
78 if (value == EGL_DONT_CARE)
80 log << TestLog::Message << " " << attribStr << ": EGL_DONT_CARE" << TestLog::EndMessage;
84 log << TestLog::Message << " " << attribStr << ": " << eglu::getConfigAttribValueStr(attrib, value) << TestLog::EndMessage;
87 bool configListEqual (const Library& egl, const EGLDisplay& display, const vector<EGLConfig>& as, const vector<EGLConfig>& bs)
89 if (as.size() != bs.size())
92 for (int configNdx = 0; configNdx < (int)as.size(); configNdx++)
94 if (as[configNdx] != bs[configNdx])
96 // Allow lists to differ if both configs are non-conformant
97 const EGLint aCaveat = eglu::getConfigAttribInt(egl, display, as[configNdx], EGL_CONFIG_CAVEAT);
98 const EGLint bCaveat = eglu::getConfigAttribInt(egl, display, bs[configNdx], EGL_CONFIG_CAVEAT);
100 if (aCaveat != EGL_NON_CONFORMANT_CONFIG || bCaveat != EGL_NON_CONFORMANT_CONFIG)
110 class ChooseConfigCase : public TestCase
113 ChooseConfigCase (EglTestContext& eglTestCtx, const char* name, const char* description, bool checkOrder, const EGLint* attributes)
114 : TestCase (eglTestCtx, name, description)
115 , m_checkOrder (checkOrder)
116 , m_display (EGL_NO_DISPLAY)
119 while (attributes[0] != EGL_NONE)
121 m_attributes.push_back(std::make_pair((EGLenum)attributes[0], (EGLint)attributes[1]));
126 ChooseConfigCase (EglTestContext& eglTestCtx, const char* name, const char* description, bool checkOrder, const std::vector<std::pair<EGLenum, EGLint> >& attributes)
127 : TestCase (eglTestCtx, name, description)
128 , m_checkOrder (checkOrder)
129 , m_attributes (attributes)
130 , m_display (EGL_NO_DISPLAY)
136 DE_ASSERT(m_display == EGL_NO_DISPLAY);
137 m_display = eglu::getAndInitDisplay(m_eglTestCtx.getNativeDisplay());
142 m_eglTestCtx.getLibrary().terminate(m_display);
143 m_display = EGL_NO_DISPLAY;
146 IterateResult iterate (void)
148 m_testCtx.setTestResult(QP_TEST_RESULT_PASS, "Pass");
149 executeTest(m_attributes, m_checkOrder);
154 ChooseConfigCase (EglTestContext& eglTestCtx, const char* name, const char* description, bool checkOrder)
155 : TestCase (eglTestCtx, name, description)
156 , m_checkOrder (checkOrder)
157 , m_display (EGL_NO_DISPLAY)
161 void executeTest (const std::vector<std::pair<EGLenum, EGLint> >& attributes, bool checkOrder)
163 const Library& egl = m_eglTestCtx.getLibrary();
164 TestLog& log = m_testCtx.getLog();
166 // Build attributes for EGL
167 vector<EGLint> attribList;
168 for (vector<pair<EGLenum, EGLint> >::const_iterator i = attributes.begin(); i != attributes.end(); i++)
170 attribList.push_back(i->first);
171 attribList.push_back(i->second);
173 attribList.push_back(EGL_NONE);
175 // Print attribList to log
176 log << TestLog::Message << "Attributes:" << TestLog::EndMessage;
177 for (vector<pair<EGLenum, EGLint> >::const_iterator i = attributes.begin(); i != attributes.end(); i++)
178 logConfigAttrib(log, i->first, i->second);
180 std::vector<EGLConfig> resultConfigs;
181 std::vector<EGLConfig> referenceConfigs;
183 // Query from EGL implementation
185 EGLint numConfigs = 0;
186 EGLU_CHECK_CALL(egl, chooseConfig(m_display, &attribList[0], DE_NULL, 0, &numConfigs));
187 resultConfigs.resize(numConfigs);
190 EGLU_CHECK_CALL(egl, chooseConfig(m_display, &attribList[0], &resultConfigs[0], (EGLint)resultConfigs.size(), &numConfigs));
194 chooseConfigReference(egl, m_display, referenceConfigs, attributes);
196 log << TestLog::Message << "Expected:\n " << configListToString(egl, m_display, referenceConfigs) << TestLog::EndMessage;
197 log << TestLog::Message << "Got:\n " << configListToString(egl, m_display, resultConfigs) << TestLog::EndMessage;
199 bool isSetMatch = (set<EGLConfig>(resultConfigs.begin(), resultConfigs.end()) == set<EGLConfig>(referenceConfigs.begin(), referenceConfigs.end()));
200 bool isExactMatch = configListEqual(egl, m_display, resultConfigs, referenceConfigs);
201 bool isMatch = isSetMatch && (checkOrder ? isExactMatch : true);
204 log << TestLog::Message << "Pass" << TestLog::EndMessage;
205 else if (!isSetMatch)
206 log << TestLog::Message << "Fail, configs don't match" << TestLog::EndMessage;
207 else if (!isExactMatch)
208 log << TestLog::Message << "Fail, got correct configs but in invalid order" << TestLog::EndMessage;
211 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Fail");
214 void fillDontCare (std::vector<std::pair<EGLenum, EGLint> >& attributes)
216 static const EGLenum dontCareAttributes[] =
218 EGL_TRANSPARENT_TYPE,
219 EGL_COLOR_BUFFER_TYPE,
224 // Fill appropriate unused attributes with EGL_DONT_CARE
225 for (int ndx = 0; ndx < DE_LENGTH_OF_ARRAY(dontCareAttributes); ndx++)
228 for (size_t findNdx = 0; findNdx < attributes.size(); findNdx++)
229 if (attributes[findNdx].first == dontCareAttributes[ndx]) found = true;
231 if (!found) attributes.push_back(std::make_pair(dontCareAttributes[ndx], EGL_DONT_CARE));
235 const bool m_checkOrder;
236 vector<pair<EGLenum, EGLint> > m_attributes;
238 EGLDisplay m_display;
241 class ChooseConfigSimpleCase : public ChooseConfigCase
244 EGLint getValue (EGLenum name)
252 { EGL_BUFFER_SIZE, 0 },
254 { EGL_GREEN_SIZE, 0 },
255 { EGL_BLUE_SIZE, 0 },
256 { EGL_LUMINANCE_SIZE, 0 },
257 { EGL_ALPHA_SIZE, 0 },
258 { EGL_ALPHA_MASK_SIZE, 0 },
259 { EGL_BIND_TO_TEXTURE_RGB, EGL_DONT_CARE },
260 { EGL_BIND_TO_TEXTURE_RGBA, EGL_DONT_CARE },
261 { EGL_COLOR_BUFFER_TYPE, EGL_DONT_CARE },
262 { EGL_CONFIG_CAVEAT, EGL_DONT_CARE },
263 //{ EGL_CONFIG_ID, EGL_DONT_CARE },
264 { EGL_DEPTH_SIZE, 0 },
266 { EGL_MAX_SWAP_INTERVAL, EGL_DONT_CARE },
267 { EGL_MIN_SWAP_INTERVAL, EGL_DONT_CARE },
268 { EGL_NATIVE_RENDERABLE, EGL_DONT_CARE },
269 { EGL_NATIVE_VISUAL_TYPE, EGL_DONT_CARE },
270 { EGL_SAMPLE_BUFFERS, 0 },
272 { EGL_STENCIL_SIZE, 0 },
273 { EGL_TRANSPARENT_TYPE, EGL_TRANSPARENT_RGB },
274 { EGL_TRANSPARENT_RED_VALUE, 0 },
275 { EGL_TRANSPARENT_GREEN_VALUE, 0 },
276 { EGL_TRANSPARENT_BLUE_VALUE, 0 },
277 { EGL_CONFORMANT, EGL_OPENGL_ES_BIT },
278 { EGL_RENDERABLE_TYPE, EGL_OPENGL_ES_BIT },
279 { EGL_SURFACE_TYPE, EGL_WINDOW_BIT }
280 //{ EGL_CONFORMANT, EGL_OPENGL_BIT | EGL_OPENGL_ES_BIT | EGL_OPENGL_ES2_BIT | EGL_OPENVG_BIT },
281 //{ EGL_RENDERABLE_TYPE, EGL_OPENGL_BIT | EGL_OPENGL_ES_BIT | EGL_OPENGL_ES2_BIT | EGL_OPENVG_BIT },
282 //{ EGL_SURFACE_TYPE, EGL_WINDOW_BIT
285 // | EGL_MULTISAMPLE_RESOLVE_BOX_BIT
286 // | EGL_VG_ALPHA_FORMAT_PRE_BIT
287 // | EGL_SWAP_BEHAVIOR_PRESERVED_BIT
288 // | EGL_VG_COLORSPACE_LINEAR_BIT
292 if (name == EGL_CONFIG_ID)
295 vector<EGLConfig> configs = eglu::getConfigs(m_eglTestCtx.getLibrary(), m_display);
296 return eglu::getConfigID(m_eglTestCtx.getLibrary(), m_display, configs[rnd.getInt(0, (int)configs.size()-1)]);
300 for (int ndx = 0; ndx < DE_LENGTH_OF_ARRAY(attributes); ndx++)
302 if (attributes[ndx].name == name)
303 return attributes[ndx].value;
311 ChooseConfigSimpleCase (EglTestContext& eglTestCtx, const char* name, const char* description, EGLenum attribute, bool checkOrder)
312 : ChooseConfigCase(eglTestCtx, name, description, checkOrder)
313 , m_attribute(attribute)
317 TestCase::IterateResult iterate (void)
319 m_testCtx.setTestResult(QP_TEST_RESULT_PASS, "Pass");
321 std::vector<std::pair<EGLenum, EGLint> > attributes;
322 attributes.push_back(std::pair<EGLenum, EGLint>(m_attribute, getValue(m_attribute)));
324 fillDontCare(attributes);
325 executeTest(attributes, m_checkOrder);
333 class ChooseConfigRandomCase : public ChooseConfigCase
336 ChooseConfigRandomCase (EglTestContext& eglTestCtx, const char* name, const char* description, const set<EGLenum>& attribSet)
337 : ChooseConfigCase (eglTestCtx, name, description, true)
338 , m_attribSet (attribSet)
346 ChooseConfigCase::init();
348 m_testCtx.setTestResult(QP_TEST_RESULT_PASS, "Pass");
351 TestCase::IterateResult iterate (void)
353 m_testCtx.getLog() << TestLog::Message << "Iteration :" << m_iterNdx << TestLog::EndMessage;
356 // Build random list of attributes
357 de::Random rnd(m_iterNdx);
358 const int numAttribs = rnd.getInt(0, (int)m_attribSet.size()*2);
360 std::vector<std::pair<EGLenum, EGLint> > attributes = genRandomAttributes(m_attribSet, numAttribs, rnd);
362 fillDontCare(attributes);
363 executeTest(attributes, m_checkOrder);
365 return m_iterNdx < m_numIters ? CONTINUE : STOP;
368 template <int MinVal, int MaxVal> static EGLint getInt (de::Random& rnd)
370 return rnd.getInt(MinVal, MaxVal);
373 static EGLint getBool (de::Random& rnd)
375 return rnd.getBool() ? EGL_TRUE : EGL_FALSE;
378 static EGLint getBufferType (de::Random& rnd)
380 static const EGLint types[] = { EGL_RGB_BUFFER, EGL_LUMINANCE_BUFFER };
381 return rnd.choose<EGLint>(types, types+DE_LENGTH_OF_ARRAY(types));
384 static EGLint getConfigCaveat (de::Random& rnd)
386 static const EGLint caveats[] = { EGL_SLOW_CONFIG, EGL_NON_CONFORMANT_CONFIG };
387 return rnd.choose<EGLint>(caveats, caveats+DE_LENGTH_OF_ARRAY(caveats));
390 static EGLint getApiBits (de::Random& rnd)
393 api |= rnd.getBool() ? EGL_OPENGL_BIT : 0;
394 api |= rnd.getBool() ? EGL_OPENGL_ES_BIT : 0;
395 api |= rnd.getBool() ? EGL_OPENGL_ES2_BIT : 0;
396 api |= rnd.getBool() ? EGL_OPENVG_BIT : 0;
400 static EGLint getSurfaceType (de::Random& rnd)
403 bits |= rnd.getBool() ? EGL_WINDOW_BIT : 0;
404 bits |= rnd.getBool() ? EGL_PIXMAP_BIT : 0;
405 bits |= rnd.getBool() ? EGL_PBUFFER_BIT : 0;
412 EGLint (*getValue)(de::Random& rnd);
415 std::vector<std::pair<EGLenum, EGLint> > genRandomAttributes (const std::set<EGLenum>& attribSet, int numAttribs, de::Random& rnd)
417 static const struct AttribSpec attributes[] =
419 { EGL_BUFFER_SIZE, ChooseConfigRandomCase::getInt<0, 32>, },
420 { EGL_RED_SIZE, ChooseConfigRandomCase::getInt<0, 8>, },
421 { EGL_GREEN_SIZE, ChooseConfigRandomCase::getInt<0, 8>, },
422 { EGL_BLUE_SIZE, ChooseConfigRandomCase::getInt<0, 8>, },
423 { EGL_LUMINANCE_SIZE, ChooseConfigRandomCase::getInt<0, 1>, },
424 { EGL_ALPHA_SIZE, ChooseConfigRandomCase::getInt<0, 8>, },
425 { EGL_ALPHA_MASK_SIZE, ChooseConfigRandomCase::getInt<0, 1>, },
426 { EGL_BIND_TO_TEXTURE_RGB, ChooseConfigRandomCase::getBool, },
427 { EGL_BIND_TO_TEXTURE_RGBA, ChooseConfigRandomCase::getBool, },
428 { EGL_COLOR_BUFFER_TYPE, ChooseConfigRandomCase::getBufferType, },
429 { EGL_CONFIG_CAVEAT, ChooseConfigRandomCase::getConfigCaveat, },
430 // { EGL_CONFIG_ID, 0/*special*/, },
431 { EGL_CONFORMANT, ChooseConfigRandomCase::getApiBits, },
432 { EGL_DEPTH_SIZE, ChooseConfigRandomCase::getInt<0, 32>, },
433 { EGL_LEVEL, ChooseConfigRandomCase::getInt<0, 1>, },
434 // { EGL_MATCH_NATIVE_PIXMAP, EGL_NONE, },
435 { EGL_MAX_SWAP_INTERVAL, ChooseConfigRandomCase::getInt<0, 2>, },
436 { EGL_MIN_SWAP_INTERVAL, ChooseConfigRandomCase::getInt<0, 1>, },
437 { EGL_NATIVE_RENDERABLE, ChooseConfigRandomCase::getBool, },
438 // { EGL_NATIVE_VISUAL_TYPE, EGL_DONT_CARE, },
439 { EGL_RENDERABLE_TYPE, ChooseConfigRandomCase::getApiBits, },
440 { EGL_SAMPLE_BUFFERS, ChooseConfigRandomCase::getInt<0, 1>, },
441 { EGL_SAMPLES, ChooseConfigRandomCase::getInt<0, 1>, },
442 { EGL_STENCIL_SIZE, ChooseConfigRandomCase::getInt<0, 1>, },
443 { EGL_SURFACE_TYPE, ChooseConfigRandomCase::getSurfaceType, },
444 // { EGL_TRANSPARENT_TYPE, EGL_TRANSPARENT_RGB,},
445 // { EGL_TRANSPARENT_RED_VALUE, ChooseConfigRandomCase::getInt<0, 255>, },
446 // { EGL_TRANSPARENT_GREEN_VALUE, ChooseConfigRandomCase::getInt<0, 255>, },
447 // { EGL_TRANSPARENT_BLUE_VALUE, ChooseConfigRandomCase::getInt<0, 255>, }
450 std::vector<std::pair<EGLenum, EGLint> > out;
452 // Build list to select from
453 std::vector<AttribSpec> candidates;
454 for (int ndx = 0; ndx < (int)DE_LENGTH_OF_ARRAY(attributes); ndx++)
456 if (attribSet.find(attributes[ndx].attribute) != attribSet.end())
457 candidates.push_back(attributes[ndx]);
460 for (int attribNdx = 0; attribNdx < numAttribs; attribNdx++)
462 AttribSpec spec = rnd.choose<AttribSpec>(candidates.begin(), candidates.end());
463 out.push_back(std::make_pair(spec.attribute, spec.getValue(rnd)));
469 std::set<EGLenum> m_attribSet;
474 class ColorComponentTypeCase : public ChooseConfigCase
478 ColorComponentTypeCase (EglTestContext& eglTestCtx, const char* name, EGLenum value)
479 : ChooseConfigCase (eglTestCtx, name, "", true /* sorting order is validated */)
484 TestCase::IterateResult iterate (void)
486 m_testCtx.setTestResult(QP_TEST_RESULT_PASS, "Pass");
489 const std::vector<std::string> extensions = eglu::getDisplayExtensions(m_eglTestCtx.getLibrary(), m_display);
491 if (!de::contains(extensions.begin(), extensions.end(), "EGL_EXT_pixel_format_float"))
492 TCU_THROW(NotSupportedError, "EGL_EXT_pixel_format_float is not supported");
496 std::vector<std::pair<EGLenum, EGLint> > attributes;
498 attributes.push_back(std::pair<EGLenum, EGLint>(EGL_COLOR_COMPONENT_TYPE_EXT, m_value));
499 fillDontCare(attributes);
501 executeTest(attributes, m_checkOrder);
507 const EGLenum m_value;
510 ChooseConfigTests::ChooseConfigTests (EglTestContext& eglTestCtx)
511 : TestCaseGroup(eglTestCtx, "choose_config", "eglChooseConfig() tests")
515 ChooseConfigTests::~ChooseConfigTests (void)
522 template <typename T, size_t N>
523 std::set<T> toSet (const T (&arr)[N])
526 for (size_t i = 0; i < N; i++)
533 void ChooseConfigTests::init (void)
540 const char* testName;
543 { EGL_BUFFER_SIZE, "buffer_size" },
544 { EGL_RED_SIZE, "red_size" },
545 { EGL_GREEN_SIZE, "green_size" },
546 { EGL_BLUE_SIZE, "blue_size" },
547 { EGL_LUMINANCE_SIZE, "luminance_size" },
548 { EGL_ALPHA_SIZE, "alpha_size" },
549 { EGL_ALPHA_MASK_SIZE, "alpha_mask_size" },
550 { EGL_BIND_TO_TEXTURE_RGB, "bind_to_texture_rgb" },
551 { EGL_BIND_TO_TEXTURE_RGBA, "bind_to_texture_rgba" },
552 { EGL_COLOR_BUFFER_TYPE, "color_buffer_type" },
553 { EGL_CONFIG_CAVEAT, "config_caveat" },
554 { EGL_CONFIG_ID, "config_id" },
555 { EGL_CONFORMANT, "conformant" },
556 { EGL_DEPTH_SIZE, "depth_size" },
557 { EGL_LEVEL, "level" },
558 { EGL_MAX_SWAP_INTERVAL, "max_swap_interval" },
559 { EGL_MIN_SWAP_INTERVAL, "min_swap_interval" },
560 { EGL_NATIVE_RENDERABLE, "native_renderable" },
561 { EGL_NATIVE_VISUAL_TYPE, "native_visual_type" },
562 { EGL_RENDERABLE_TYPE, "renderable_type" },
563 { EGL_SAMPLE_BUFFERS, "sample_buffers" },
564 { EGL_SAMPLES, "samples" },
565 { EGL_STENCIL_SIZE, "stencil_size" },
566 { EGL_SURFACE_TYPE, "surface_type" },
567 { EGL_TRANSPARENT_TYPE, "transparent_type" },
568 { EGL_TRANSPARENT_RED_VALUE, "transparent_red_value" },
569 { EGL_TRANSPARENT_GREEN_VALUE, "transparent_green_value" },
570 { EGL_TRANSPARENT_BLUE_VALUE, "transparent_blue_value" }
573 tcu::TestCaseGroup* simpleGroup = new tcu::TestCaseGroup(m_testCtx, "simple", "Simple tests");
574 addChild(simpleGroup);
576 tcu::TestCaseGroup* selectionGroup = new tcu::TestCaseGroup(m_testCtx, "selection_only", "Selection tests, order ignored");
577 simpleGroup->addChild(selectionGroup);
579 tcu::TestCaseGroup* sortGroup = new tcu::TestCaseGroup(m_testCtx, "selection_and_sort", "Selection and ordering tests");
580 simpleGroup->addChild(sortGroup);
582 for (int ndx = 0; ndx < (int)DE_LENGTH_OF_ARRAY(attributes); ndx++)
584 selectionGroup->addChild(new ChooseConfigSimpleCase(m_eglTestCtx, attributes[ndx].testName, "Simple config selection case", attributes[ndx].attribute, false));
585 sortGroup->addChild(new ChooseConfigSimpleCase(m_eglTestCtx, attributes[ndx].testName, "Simple config selection and sort case", attributes[ndx].attribute, true));
591 tcu::TestCaseGroup* randomGroup = new tcu::TestCaseGroup(m_testCtx, "random", "Random eglChooseConfig() usage");
592 addChild(randomGroup);
594 static const EGLenum rgbaSizes[] =
601 randomGroup->addChild(new ChooseConfigRandomCase(m_eglTestCtx, "color_sizes", "Random color size rules", toSet(rgbaSizes)));
603 static const EGLenum colorDepthStencilSizes[] =
612 randomGroup->addChild(new ChooseConfigRandomCase(m_eglTestCtx, "color_depth_stencil_sizes", "Random color, depth and stencil size rules", toSet(colorDepthStencilSizes)));
614 static const EGLenum bufferSizes[] =
622 randomGroup->addChild(new ChooseConfigRandomCase(m_eglTestCtx, "buffer_sizes", "Various buffer size rules", toSet(bufferSizes)));
624 static const EGLenum surfaceType[] =
626 EGL_NATIVE_RENDERABLE,
629 randomGroup->addChild(new ChooseConfigRandomCase(m_eglTestCtx, "surface_type", "Surface type rules", toSet(surfaceType)));
631 static const EGLenum sampleBuffers[] =
636 randomGroup->addChild(new ChooseConfigRandomCase(m_eglTestCtx, "sample_buffers", "Sample buffer rules", toSet(sampleBuffers)));
638 // \note Not every attribute is supported at the moment
639 static const EGLenum allAttribs[] =
647 EGL_BIND_TO_TEXTURE_RGB,
648 EGL_BIND_TO_TEXTURE_RGBA,
649 EGL_COLOR_BUFFER_TYPE,
655 // EGL_MATCH_NATIVE_PIXMAP,
656 EGL_MAX_SWAP_INTERVAL,
657 EGL_MIN_SWAP_INTERVAL,
658 EGL_NATIVE_RENDERABLE,
659 EGL_NATIVE_VISUAL_TYPE,
665 EGL_TRANSPARENT_TYPE,
666 // EGL_TRANSPARENT_RED_VALUE,
667 // EGL_TRANSPARENT_GREEN_VALUE,
668 // EGL_TRANSPARENT_BLUE_VALUE
670 randomGroup->addChild(new ChooseConfigRandomCase(m_eglTestCtx, "all", "All attributes", toSet(allAttribs)));
673 // EGL_EXT_pixel_format_float
675 de::MovePtr<tcu::TestCaseGroup> colorComponentTypeGroup (new tcu::TestCaseGroup(m_testCtx, "color_component_type_ext", "EGL_EXT_pixel_format_float tests"));
677 colorComponentTypeGroup->addChild(new ColorComponentTypeCase(m_eglTestCtx, "dont_care", EGL_DONT_CARE));
678 colorComponentTypeGroup->addChild(new ColorComponentTypeCase(m_eglTestCtx, "fixed", EGL_COLOR_COMPONENT_TYPE_FIXED_EXT));
679 colorComponentTypeGroup->addChild(new ColorComponentTypeCase(m_eglTestCtx, "float", EGL_COLOR_COMPONENT_TYPE_FLOAT_EXT));
681 addChild(colorComponentTypeGroup.release());