Lines Matching refs:contexts
135 std::vector<eglw::EGLContext> contexts;
138 contexts.reserve(maxContextCount);
140 log << TestLog::Message << "Trying to create " << maxContextCount << (m_sharing == SHARING_SHARED ? " shared " : " ") << "contexts." << TestLog::EndMessage;
141 log << TestLog::Message << "Requiring that at least " << minContextCount << " contexts can be created." << TestLog::EndMessage;
152 const eglw::EGLContext sharedContext = (m_sharing == SHARING_SHARED && contextCount > 0 ? contexts[rng.getUint32() % (deUint32)contextCount] : EGL_NO_CONTEXT);
158 log << TestLog::Message << "Got error after creating " << contextCount << " contexts." << TestLog::EndMessage;
163 resultCollector.fail("Couldn't create the minimum number of contexts required.");
177 contexts.push_back(context);
202 for (size_t contextNdx = 0; contextNdx < contexts.size(); contextNdx++)
204 EGLU_CHECK_CALL(egl, destroyContext(*display, contexts[contextNdx]));
205 contexts[contextNdx] = EGL_NO_CONTEXT;
213 for (size_t contextNdx = 0; contextNdx < contexts.size(); contextNdx++)
215 if (contexts[contextNdx] != EGL_NO_CONTEXT)
216 EGLU_CHECK_CALL(egl, destroyContext(*display, contexts[contextNdx]));
235 group->addChild(new MultiContextTest(eglTestCtx, MultiContextTest::SHARING_NONE, MultiContextTest::USE_NONE, "non_shared", "Create multiple non-shared contexts."));
236 group->addChild(new MultiContextTest(eglTestCtx, MultiContextTest::SHARING_SHARED, MultiContextTest::USE_NONE, "shared", "Create multiple shared contexts."));
238 group->addChild(new MultiContextTest(eglTestCtx, MultiContextTest::SHARING_NONE, MultiContextTest::USE_MAKECURRENT, "non_shared_make_current", "Create multiple non-shared contexts."));
239 group->addChild(new MultiContextTest(eglTestCtx, MultiContextTest::SHARING_SHARED, MultiContextTest::USE_MAKECURRENT, "shared_make_current", "Create multiple shared contexts."));
241 group->addChild(new MultiContextTest(eglTestCtx, MultiContextTest::SHARING_NONE, MultiContextTest::USE_CLEAR, "non_shared_clear", "Create multiple non-shared contexts."));
242 group->addChild(new MultiContextTest(eglTestCtx, MultiContextTest::SHARING_SHARED, MultiContextTest::USE_CLEAR, "shared_clear", "Create multiple shared contexts."));