Lines Matching full:contexts
129 std::vector<eglw::EGLContext> contexts;
132 contexts.reserve(maxContextCount);
134 log << TestLog::Message << "Trying to create " << maxContextCount << (m_sharing == SHARING_SHARED ? " shared " : " ") << "contexts." << TestLog::EndMessage;
135 log << TestLog::Message << "Requiring that at least " << minContextCount << " contexts can be created." << TestLog::EndMessage;
146 const eglw::EGLContext sharedContext = (m_sharing == SHARING_SHARED && contextCount > 0 ? contexts[rng.getUint32() % (deUint32)contextCount] : EGL_NO_CONTEXT);
152 log << TestLog::Message << "Got error after creating " << contextCount << " contexts." << TestLog::EndMessage;
157 resultCollector.fail("Couldn't create the minimum number of contexts required.");
171 contexts.push_back(context);
196 for (size_t contextNdx = 0; contextNdx < contexts.size(); contextNdx++)
198 EGLU_CHECK_CALL(egl, destroyContext(*display, contexts[contextNdx]));
199 contexts[contextNdx] = EGL_NO_CONTEXT;
207 for (size_t contextNdx = 0; contextNdx < contexts.size(); contextNdx++)
209 if (contexts[contextNdx] != EGL_NO_CONTEXT)
210 EGLU_CHECK_CALL(egl, destroyContext(*display, contexts[contextNdx]));
229 group->addChild(new MultiContextTest(eglTestCtx, MultiContextTest::SHARING_NONE, MultiContextTest::USE_NONE, "non_shared", "Create multiple non-shared contexts."));
230 group->addChild(new MultiContextTest(eglTestCtx, MultiContextTest::SHARING_SHARED, MultiContextTest::USE_NONE, "shared", "Create multiple shared contexts."));
232 group->addChild(new MultiContextTest(eglTestCtx, MultiContextTest::SHARING_NONE, MultiContextTest::USE_MAKECURRENT, "non_shared_make_current", "Create multiple non-shared contexts."));
233 group->addChild(new MultiContextTest(eglTestCtx, MultiContextTest::SHARING_SHARED, MultiContextTest::USE_MAKECURRENT, "shared_make_current", "Create multiple shared contexts."));
235 group->addChild(new MultiContextTest(eglTestCtx, MultiContextTest::SHARING_NONE, MultiContextTest::USE_CLEAR, "non_shared_clear", "Create multiple non-shared contexts."));
236 group->addChild(new MultiContextTest(eglTestCtx, MultiContextTest::SHARING_SHARED, MultiContextTest::USE_CLEAR, "shared_clear", "Create multiple shared contexts."));