Lines Matching refs:attributes

113 	ChooseConfigCase (EglTestContext& eglTestCtx, const char* name, const char* description, bool checkOrder, const EGLint* attributes)
118 // Parse attributes
119 while (attributes[0] != EGL_NONE)
121 m_attributes.push_back(std::make_pair((EGLenum)attributes[0], (EGLint)attributes[1]));
122 attributes += 2;
126 ChooseConfigCase (EglTestContext& eglTestCtx, const char* name, const char* description, bool checkOrder, const std::vector<std::pair<EGLenum, EGLint> >& attributes)
129 , m_attributes (attributes)
161 void executeTest (const std::vector<std::pair<EGLenum, EGLint> >& attributes, bool checkOrder)
166 // Build attributes for EGL
168 for (vector<pair<EGLenum, EGLint> >::const_iterator i = attributes.begin(); i != attributes.end(); i++)
177 for (vector<pair<EGLenum, EGLint> >::const_iterator i = attributes.begin(); i != attributes.end(); i++)
194 chooseConfigReference(egl, m_display, referenceConfigs, attributes);
214 void fillDontCare (std::vector<std::pair<EGLenum, EGLint> >& attributes)
224 // Fill appropriate unused attributes with EGL_DONT_CARE
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));
250 } attributes[] =
301 for (int ndx = 0; ndx < DE_LENGTH_OF_ARRAY(attributes); ndx++)
303 if (attributes[ndx].name == name)
304 return attributes[ndx].value;
328 std::vector<std::pair<EGLenum, EGLint> > attributes;
329 attributes.push_back(std::pair<EGLenum, EGLint>(m_attribute, getValue(m_attribute)));
331 fillDontCare(attributes);
332 executeTest(attributes, m_checkOrder);
357 // Remove unsupported attributes from the set
367 // Build random list of attributes
371 std::vector<std::pair<EGLenum, EGLint> > attributes = genRandomAttributes(m_attribSet, numAttribs, rnd);
373 fillDontCare(attributes);
374 executeTest(attributes, m_checkOrder);
428 static const struct AttribSpec attributes[] =
466 for (int ndx = 0; ndx < (int)DE_LENGTH_OF_ARRAY(attributes); ndx++)
468 if (attribSet.find(attributes[ndx].attribute) != attribSet.end())
469 candidates.push_back(attributes[ndx]);
508 std::vector<std::pair<EGLenum, EGLint> > attributes;
510 attributes.push_back(std::pair<EGLenum, EGLint>(EGL_COLOR_COMPONENT_TYPE_EXT, m_value));
511 fillDontCare(attributes);
513 executeTest(attributes, m_checkOrder);
547 // Single attributes
553 } attributes[] =
595 for (int ndx = 0; ndx < (int)DE_LENGTH_OF_ARRAY(attributes); ndx++)
597 selectionGroup->addChild(new ChooseConfigSimpleCase(m_eglTestCtx, attributes[ndx].testName, "Simple config selection case", attributes[ndx].attribute, false));
598 sortGroup->addChild(new ChooseConfigSimpleCase(m_eglTestCtx, attributes[ndx].testName, "Simple config selection and sort case", attributes[ndx].attribute, true));
684 randomGroup->addChild(new ChooseConfigRandomCase(m_eglTestCtx, "all", "All attributes", toSet(allAttribs)));