Lines Matching defs:egl
66 namespace egl
71 EGLContext createGLES2Context (const Library& egl, EGLDisplay display, EGLConfig config)
80 EGLU_CHECK_CALL(egl, bindAPI(EGL_OPENGL_ES_API));
82 context = egl.createContext(display, config, EGL_NO_CONTEXT, attribList);
83 EGLU_CHECK_MSG(egl, "eglCreateContext() failed");
350 void logConfigInfo (TestLog& log, const Library& egl, EGLDisplay display, EGLConfig config, NativeCoordMappingCase::NativeType nativeType, int waitFrames)
352 log << TestLog::Message << "EGL_RED_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EGL_RED_SIZE) << TestLog::EndMessage;
353 log << TestLog::Message << "EGL_GREEN_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EGL_GREEN_SIZE) << TestLog::EndMessage;
354 log << TestLog::Message << "EGL_BLUE_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EGL_BLUE_SIZE) << TestLog::EndMessage;
355 log << TestLog::Message << "EGL_ALPHA_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EGL_ALPHA_SIZE) << TestLog::EndMessage;
356 log << TestLog::Message << "EGL_DEPTH_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EGL_DEPTH_SIZE) << TestLog::EndMessage;
357 log << TestLog::Message << "EGL_STENCIL_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EGL_STENCIL_SIZE) << TestLog::EndMessage;
358 log << TestLog::Message << "EGL_SAMPLES: " << eglu::getConfigAttribInt(egl, display, config, EGL_SAMPLES) << TestLog::EndMessage;
371 const Library& egl = nativeDisplay.getLibrary();
373 eglu::UniqueSurface surface (egl, display, eglu::createWindowSurface(nativeDisplay, nativeWindow, display, config, DE_NULL));
374 const tcu::IVec2 surfaceSize = eglu::getSurfaceSize(egl, display, *surface);
381 EGLU_CHECK_CALL(egl, makeCurrent(display, *surface, *surface, context));
393 EGLU_CHECK_CALL(egl, swapBuffers(display, *surface));
394 EGLU_CHECK_CALL(egl, waitClient());
401 EGLU_CHECK_CALL(egl, makeCurrent(display, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT));
420 const Library& egl = nativeDisplay.getLibrary();
421 eglu::UniqueSurface surface (egl, display, eglu::createPixmapSurface(nativeDisplay, nativePixmap, display, config, DE_NULL));
428 EGLU_CHECK_CALL(egl, makeCurrent(display, *surface, *surface, context));
440 EGLU_CHECK_CALL(egl, waitClient());
446 EGLU_CHECK_CALL(egl, makeCurrent(display, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT));
458 bool testNativePixmapCopy (TestLog& log, const Library& egl, eglu::NativePixmap& nativePixmap, int width, int height, EGLDisplay display, EGLContext context, EGLConfig config, const glw::Functions& gl, bool renderColor)
465 eglu::UniqueSurface surface (egl, display, egl.createPbufferSurface(display, config, DE_NULL));
472 EGLU_CHECK_CALL(egl, makeCurrent(display, *surface, *surface, context));
484 EGLU_CHECK_CALL(egl, copyBuffers(display, *surface, nativePixmap.getLegacyNative()));
485 EGLU_CHECK_CALL(egl, waitClient());
491 EGLU_CHECK_CALL(egl, makeCurrent(display, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT));
505 const Library& egl = m_eglTestCtx.getLibrary();
506 const string configIdStr (de::toString(eglu::getConfigAttribInt(egl, display, config, EGL_CONFIG_ID)));
514 logConfigInfo(m_testCtx.getLog(), egl, display, config, m_nativeType, waitFrames);
558 eglu::UniqueContext context (egl, display, createGLES2Context(egl, display, config));
589 if (!testNativePixmapCopy(m_testCtx.getLog(), egl, *nativePixmap, width, height, display, *context, config, gl, m_render))
666 } // egl