Lines Matching refs:egl
57 namespace egl namespace
123 void requiredEGLExtensions (const Library& egl, EGLDisplay display, SyncTest::Extension requiredExt… in requiredEGLExtensions() argument
126 std::istringstream extensionStream(egl.queryString(display, EGL_EXTENSIONS)); in requiredEGLExtensions()
129 EGLU_CHECK_MSG(egl, "eglQueryString(display, EGL_EXTENSIONS)"); in requiredEGLExtensions()
187 const Library& egl = m_eglTestCtx.getLibrary(); in init() local
205 m_eglConfig = eglu::chooseSingleConfig(egl, m_eglDisplay, displayAttribList); in init()
211 requiredEGLExtensions(egl, m_eglDisplay, (Extension)(m_extensions | syncTypeExtension)); in init()
217 EGLU_CHECK_CALL(egl, bindAPI(EGL_OPENGL_ES_API)); in init()
218 m_eglContext = egl.createContext(m_eglDisplay, m_eglConfig, EGL_NO_CONTEXT, contextAttribList); in init()
219 EGLU_CHECK_MSG(egl, "Failed to create GLES2 context"); in init()
225 EGLU_CHECK_CALL(egl, makeCurrent(m_eglDisplay, m_eglSurface, m_eglSurface, m_eglContext)); in init()
233 const Library& egl = m_eglTestCtx.getLibrary(); in deinit() local
239 EGLU_CHECK_CALL(egl, destroySyncKHR(m_eglDisplay, m_sync)); in deinit()
243 EGLU_CHECK_CALL(egl, makeCurrent(m_eglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT)); in deinit()
247 EGLU_CHECK_CALL(egl, destroyContext(m_eglDisplay, m_eglContext)); in deinit()
253 EGLU_CHECK_CALL(egl, destroySurface(m_eglDisplay, m_eglSurface)); in deinit()
260 egl.terminate(m_eglDisplay); in deinit()
275 const Library& egl = m_eglTestCtx.getLibrary(); in iterate() local
278 m_sync = egl.createSyncKHR(m_eglDisplay, m_syncType, NULL); in iterate()
280 EGLU_CHECK_MSG(egl, "eglCreateSyncKHR()"); in iterate()
298 const Library& egl = m_eglTestCtx.getLibrary(); in iterate() local
305 m_sync = egl.createSyncKHR(m_eglDisplay, m_syncType, attribList); in iterate()
307 EGLU_CHECK_MSG(egl, "eglCreateSyncKHR()"); in iterate()
324 const Library& egl = m_eglTestCtx.getLibrary(); in iterate() local
327 m_sync = egl.createSyncKHR(EGL_NO_DISPLAY, m_syncType, NULL); in iterate()
330 EGLint error = egl.getError(); in iterate()
357 const Library& egl = m_eglTestCtx.getLibrary(); in iterate() local
360 m_sync = egl.createSyncKHR(m_eglDisplay, EGL_NONE, NULL); in iterate()
363 EGLint error = egl.getError(); in iterate()
390 const Library& egl = m_eglTestCtx.getLibrary(); in iterate() local
398 m_sync = egl.createSyncKHR(m_eglDisplay, m_syncType, attribs); in iterate()
401 EGLint error = egl.getError(); in iterate()
428 const Library& egl = m_eglTestCtx.getLibrary(); in iterate() local
432 EGLU_CHECK_CALL(egl, makeCurrent(m_eglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT)); in iterate()
434 m_sync = egl.createSyncKHR(m_eglDisplay, m_syncType, NULL); in iterate()
437 EGLint error = egl.getError(); in iterate()
464 const Library& egl = m_eglTestCtx.getLibrary(); in iterate() local
467 m_sync = egl.createSyncKHR(m_eglDisplay, m_syncType, NULL); in iterate()
469 EGLU_CHECK_MSG(egl, "eglCreateSyncKHR()"); in iterate()
471 EGLint status = egl.clientWaitSyncKHR(m_eglDisplay, m_sync, 0, 0); in iterate()
497 const Library& egl = m_eglTestCtx.getLibrary(); in iterate() local
500 m_sync = egl.createSyncKHR(m_eglDisplay, m_syncType, NULL); in iterate()
502 EGLU_CHECK_MSG(egl, "eglCreateSyncKHR()"); in iterate()
506 EGLBoolean ret = egl.signalSyncKHR(m_eglDisplay, m_sync, EGL_SIGNALED_KHR); in iterate()
508 EGLU_CHECK_MSG(egl, "eglSignalSyncKHR()"); in iterate()
518 EGLint status = egl.clientWaitSyncKHR(m_eglDisplay, m_sync, 0, EGL_FOREVER_KHR); in iterate()
522 EGLU_CHECK_MSG(egl, "eglClientWaitSyncKHR()"); in iterate()
539 const Library& egl = m_eglTestCtx.getLibrary(); in iterate() local
542 m_sync = egl.createSyncKHR(m_eglDisplay, m_syncType, NULL); in iterate()
544 EGLU_CHECK_MSG(egl, "eglCreateSyncKHR()"); in iterate()
549 EGLBoolean ret = egl.signalSyncKHR(m_eglDisplay, m_sync, EGL_SIGNALED_KHR); in iterate()
551 EGLU_CHECK_MSG(egl, "eglSignalSyncKHR()"); in iterate()
562 EGLU_CHECK_CALL(egl, makeCurrent(m_eglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT)); in iterate()
564 EGLint result = egl.clientWaitSyncKHR(m_eglDisplay, m_sync, 0, EGL_FOREVER_KHR); in iterate()
584 const Library& egl = m_eglTestCtx.getLibrary(); in iterate() local
587 m_sync = egl.createSyncKHR(m_eglDisplay, m_syncType, NULL); in iterate()
589 EGLU_CHECK_MSG(egl, "eglCreateSyncKHR()"); in iterate()
593 EGLBoolean ret = egl.signalSyncKHR(m_eglDisplay, m_sync, EGL_SIGNALED_KHR); in iterate()
595 EGLU_CHECK_MSG(egl, "eglSignalSyncKHR()"); in iterate()
598 …EGLint status = egl.clientWaitSyncKHR(m_eglDisplay, m_sync, EGL_SYNC_FLUSH_COMMANDS_BIT_KHR, EGL_F… in iterate()
618 const Library& egl = m_eglTestCtx.getLibrary(); in iterate() local
621 m_sync = egl.createSyncKHR(m_eglDisplay, m_syncType, NULL); in iterate()
623 EGLU_CHECK_MSG(egl, "eglCreateSyncKHR()"); in iterate()
625 …EGLint status = egl.clientWaitSyncKHR(EGL_NO_DISPLAY, m_sync, EGL_SYNC_FLUSH_COMMANDS_BIT_KHR, EGL… in iterate()
628 EGLint error = egl.getError(); in iterate()
655 const Library& egl = m_eglTestCtx.getLibrary(); in iterate() local
658 EGLint status = egl.clientWaitSyncKHR(m_eglDisplay, EGL_NO_SYNC_KHR, 0, EGL_FOREVER_KHR); in iterate()
661 EGLint error = egl.getError(); in iterate()
688 const Library& egl = m_eglTestCtx.getLibrary(); in iterate() local
691 m_sync = egl.createSyncKHR(m_eglDisplay, m_syncType, NULL); in iterate()
693 EGLU_CHECK_MSG(egl, "eglCreateSyncKHR()"); in iterate()
696 EGLU_CHECK_CALL(egl, getSyncAttribKHR(m_eglDisplay, m_sync, EGL_SYNC_TYPE_KHR, &type)); in iterate()
716 const Library& egl = m_eglTestCtx.getLibrary(); in iterate() local
719 m_sync = egl.createSyncKHR(m_eglDisplay, m_syncType, NULL); in iterate()
721 EGLU_CHECK_MSG(egl, "eglCreateSyncKHR()"); in iterate()
724 EGLU_CHECK_CALL(egl, getSyncAttribKHR(m_eglDisplay, m_sync, EGL_SYNC_STATUS_KHR, &status)); in iterate()
747 const Library& egl = m_eglTestCtx.getLibrary(); in iterate() local
750 m_sync = egl.createSyncKHR(m_eglDisplay, m_syncType, NULL); in iterate()
752 EGLU_CHECK_MSG(egl, "eglCreateSyncKHR()"); in iterate()
756 EGLBoolean ret = egl.signalSyncKHR(m_eglDisplay, m_sync, EGL_SIGNALED_KHR); in iterate()
758 EGLU_CHECK_MSG(egl, "eglSignalSyncKHR()"); in iterate()
769 …EGLint status = egl.clientWaitSyncKHR(m_eglDisplay, m_sync, EGL_SYNC_FLUSH_COMMANDS_BIT_KHR, EGL_F… in iterate()
775 EGLU_CHECK_CALL(egl, getSyncAttribKHR(m_eglDisplay, m_sync, EGL_SYNC_STATUS_KHR, &status)); in iterate()
795 const Library& egl = m_eglTestCtx.getLibrary(); in iterate() local
798 m_sync = egl.createSyncKHR(m_eglDisplay, m_syncType, NULL); in iterate()
800 EGLU_CHECK_MSG(egl, "eglCreateSyncKHR()"); in iterate()
803 EGLU_CHECK_CALL(egl, getSyncAttribKHR(m_eglDisplay, m_sync, EGL_SYNC_CONDITION_KHR, &condition)); in iterate()
823 const Library& egl = m_eglTestCtx.getLibrary(); in iterate() local
826 m_sync = egl.createSyncKHR(m_eglDisplay, m_syncType, NULL); in iterate()
828 EGLU_CHECK_MSG(egl, "eglCreateSyncKHR()"); in iterate()
831 …EGLBoolean result = egl.getSyncAttribKHR(EGL_NO_DISPLAY, m_sync, EGL_SYNC_CONDITION_KHR, &conditio… in iterate()
834 EGLint error = egl.getError(); in iterate()
862 const Library& egl = m_eglTestCtx.getLibrary(); in iterate() local
866 …EGLBoolean result = egl.getSyncAttribKHR(m_eglDisplay, EGL_NO_SYNC_KHR, EGL_SYNC_CONDITION_KHR, &c… in iterate()
869 EGLint error = egl.getError(); in iterate()
897 const Library& egl = m_eglTestCtx.getLibrary(); in iterate() local
900 m_sync = egl.createSyncKHR(m_eglDisplay, m_syncType, NULL); in iterate()
902 EGLU_CHECK_MSG(egl, "eglCreateSyncKHR()"); in iterate()
905 EGLBoolean result = egl.getSyncAttribKHR(m_eglDisplay, m_sync, EGL_NONE, &condition); in iterate()
908 EGLint error = egl.getError(); in iterate()
936 const Library& egl = m_eglTestCtx.getLibrary(); in iterate() local
939 m_sync = egl.createSyncKHR(m_eglDisplay, m_syncType, NULL); in iterate()
941 EGLU_CHECK_MSG(egl, "eglCreateSyncKHR()"); in iterate()
943 EGLBoolean result = egl.getSyncAttribKHR(m_eglDisplay, m_sync, EGL_SYNC_TYPE_KHR, NULL); in iterate()
946 EGLint error = egl.getError(); in iterate()
973 const Library& egl = m_eglTestCtx.getLibrary(); in iterate() local
976 m_sync = egl.createSyncKHR(m_eglDisplay, m_syncType, NULL); in iterate()
978 EGLU_CHECK_MSG(egl, "eglCreateSyncKHR()"); in iterate()
981 EGLU_CHECK_CALL(egl, destroySyncKHR(m_eglDisplay, m_sync)); in iterate()
999 const Library& egl = m_eglTestCtx.getLibrary(); in iterate() local
1002 m_sync = egl.createSyncKHR(m_eglDisplay, m_syncType, NULL); in iterate()
1004 EGLU_CHECK_MSG(egl, "eglCreateSyncKHR()"); in iterate()
1006 EGLBoolean result = egl.destroySyncKHR(EGL_NO_DISPLAY, m_sync); in iterate()
1009 EGLint error = egl.getError(); in iterate()
1036 const Library& egl = m_eglTestCtx.getLibrary(); in iterate() local
1039 EGLBoolean result = egl.destroySyncKHR(m_eglDisplay, EGL_NO_SYNC_KHR); in iterate()
1042 EGLint error = egl.getError(); in iterate()
1069 const Library& egl = m_eglTestCtx.getLibrary(); in iterate() local
1072 m_sync = egl.createSyncKHR(m_eglDisplay, m_syncType, NULL); in iterate()
1074 EGLU_CHECK_MSG(egl, "eglCreateSyncKHR()"); in iterate()
1076 EGLint status = egl.waitSyncKHR(m_eglDisplay, m_sync, 0); in iterate()
1099 const Library& egl = m_eglTestCtx.getLibrary(); in iterate() local
1102 m_sync = egl.createSyncKHR(m_eglDisplay, m_syncType, NULL); in iterate()
1104 EGLU_CHECK_MSG(egl, "eglCreateSyncKHR()"); in iterate()
1106 EGLint status = egl.waitSyncKHR(EGL_NO_DISPLAY, m_sync, 0); in iterate()
1109 EGLint error = egl.getError(); in iterate()
1136 const Library& egl = m_eglTestCtx.getLibrary(); in iterate() local
1139 EGLint status = egl.waitSyncKHR(m_eglDisplay, EGL_NO_SYNC_KHR, 0); in iterate()
1142 EGLint error = egl.getError(); in iterate()
1169 const Library& egl = m_eglTestCtx.getLibrary(); in iterate() local
1172 m_sync = egl.createSyncKHR(m_eglDisplay, m_syncType, NULL); in iterate()
1174 EGLU_CHECK_MSG(egl, "eglCreateSyncKHR()"); in iterate()
1176 EGLint status = egl.waitSyncKHR(m_eglDisplay, m_sync, 0xFFFFFFFF); in iterate()
1179 EGLint error = egl.getError(); in iterate()