Lines Matching refs:attributes
87 …& eglTestCtx, const char* name, const char* description, bool checkOrder, const EGLint* attributes) in ChooseConfigCase() argument
92 while (attributes[0] != EGL_NONE) in ChooseConfigCase()
94 m_attributes.push_back(std::make_pair((EGLenum)attributes[0], (EGLint)attributes[1])); in ChooseConfigCase()
95 attributes += 2; in ChooseConfigCase()
99 …nst char* description, bool checkOrder, const std::vector<std::pair<EGLenum, EGLint> >& attributes) in ChooseConfigCase() argument
102 , m_attributes (attributes) in ChooseConfigCase()
120 void executeTest (const std::vector<std::pair<EGLenum, EGLint> >& attributes, bool checkOrder) in executeTest() argument
127 …for (vector<pair<EGLenum, EGLint> >::const_iterator i = attributes.begin(); i != attributes.end();… in executeTest()
136 …for (vector<pair<EGLenum, EGLint> >::const_iterator i = attributes.begin(); i != attributes.end();… in executeTest()
153 chooseConfigReference(display, referenceConfigs, attributes); in executeTest()
173 void fillDontCare (std::vector<std::pair<EGLenum, EGLint> >& attributes) in fillDontCare() argument
187 for (size_t findNdx = 0; findNdx < attributes.size(); findNdx++) in fillDontCare()
188 if (attributes[findNdx].first == dontCareAttributes[ndx]) found = true; in fillDontCare()
190 if (!found) attributes.push_back(std::make_pair(dontCareAttributes[ndx], EGL_DONT_CARE)); in fillDontCare()
207 } attributes[] = { in getValue() local
255 for (int ndx = 0; ndx < DE_LENGTH_OF_ARRAY(attributes); ndx++) in getValue()
257 if (attributes[ndx].name == name) return attributes[ndx].value; in getValue()
279 std::vector<std::pair<EGLenum, EGLint> > attributes; in iterate() local
280 attributes.push_back(std::pair<EGLenum, EGLint>(m_attribute, getValue(m_attribute))); in iterate()
282 fillDontCare(attributes); in iterate()
283 executeTest(attributes, m_checkOrder); in iterate()
317 …std::vector<std::pair<EGLenum, EGLint> > attributes = genRandomAttributes(m_attribSet, numAttribs,… in iterate() local
319 fillDontCare(attributes); in iterate()
320 executeTest(attributes, m_checkOrder); in iterate()
374 static const struct AttribSpec attributes[] = in genRandomAttributes() local
411 for (int ndx = 0; ndx < (int)DE_LENGTH_OF_ARRAY(attributes); ndx++) in genRandomAttributes()
413 if (attribSet.find(attributes[ndx].attribute) != attribSet.end()) in genRandomAttributes()
414 candidates.push_back(attributes[ndx]); in genRandomAttributes()
462 } attributes[] = in init() local
503 for (int ndx = 0; ndx < (int)DE_LENGTH_OF_ARRAY(attributes); ndx++) in init()
505 …(new ChooseConfigSimpleCase(m_eglTestCtx, attributes[ndx].testName, "Simple config selection case"… in init()
506 … ChooseConfigSimpleCase(m_eglTestCtx, attributes[ndx].testName, "Simple config selection and sort … in init()