/device/generic/vulkan-cereal/stream-servers/gl/ |
D | EmulationGl.cpp | 89 if (!s_egl.eglChooseConfig(display, configAttribs, &config, 1, &numConfigs)) { in validateGles2Context() 104 EGLSurface surface = s_egl.eglCreatePbufferSurface(display, config, surfaceAttribs); in validateGles2Context() 111 EGLContext context = s_egl.eglCreateContext(display, config, EGL_NO_CONTEXT, contextAttribs); in validateGles2Context() 114 s_egl.eglDestroySurface(display, surface); in validateGles2Context() 118 if (!s_egl.eglMakeCurrent(display, surface, surface, context)) { in validateGles2Context() 120 s_egl.eglDestroySurface(display, surface); in validateGles2Context() 121 s_egl.eglDestroyContext(display, context); in validateGles2Context() 128 s_egl.eglDestroySurface(display, surface); in validateGles2Context() 129 s_egl.eglDestroyContext(display, context); in validateGles2Context() 134 if (!s_egl.eglMakeCurrent(display, EGL_NO_CONTEXT, EGL_NO_SURFACE, EGL_NO_SURFACE)) { in validateGles2Context() [all …]
|
D | DisplaySurfaceGl.cpp | 52 EGLContext currentContext = s_egl.eglGetCurrentContext(); in setupContext() 53 EGLSurface currentDrawSurface = s_egl.eglGetCurrentSurface(EGL_DRAW); in setupContext() 54 EGLSurface currentReadSurface = s_egl.eglGetCurrentSurface(EGL_READ); in setupContext() 59 if (!s_egl.eglMakeCurrent(mDisplay, mSurface, mSurface, mContext)) { in setupContext() 60 ERR("Failed to make display surface context current: %d", s_egl.eglGetError()); in setupContext() 75 EGLContext currentContext = s_egl.eglGetCurrentContext(); in teardownContext() 76 EGLSurface currentDrawSurface = s_egl.eglGetCurrentSurface(EGL_DRAW); in teardownContext() 77 EGLSurface currentReadSurface = s_egl.eglGetCurrentSurface(EGL_READ); in teardownContext() 82 if (!s_egl.eglMakeCurrent(mDisplay, in teardownContext() 86 ERR("Failed to make restore previous context: %d", s_egl.eglGetError()); in teardownContext() [all …]
|
D | EmulatedEglWindowSurface.cpp | 46 s_egl.eglDestroySurface(mDisplay, mSurface); in ~EmulatedEglWindowSurface() 123 EGLContext prevContext = s_egl.eglGetCurrentContext(); in flushColorBuffer() 124 EGLSurface prevReadSurf = s_egl.eglGetCurrentSurface(EGL_READ); in flushColorBuffer() 125 EGLSurface prevDrawSurf = s_egl.eglGetCurrentSurface(EGL_DRAW); in flushColorBuffer() 130 if (!s_egl.eglMakeCurrent(mDisplay, in flushColorBuffer() 143 s_egl.eglMakeCurrent(mDisplay, prevDrawSurf, prevReadSurf, prevContext); in flushColorBuffer() 156 EGLContext prevContext = s_egl.eglGetCurrentContext(); in resize() 157 EGLSurface prevReadSurf = s_egl.eglGetCurrentSurface(EGL_READ); in resize() 158 EGLSurface prevDrawSurf = s_egl.eglGetCurrentSurface(EGL_DRAW); in resize() 165 s_egl.eglMakeCurrent( in resize() [all …]
|
D | EmulatedEglConfig.cpp | 80 s_egl.eglGetConfigAttrib( in isCompatibleHostConfig() 88 s_egl.eglGetConfigAttrib( in isCompatibleHostConfig() 90 s_egl.eglGetConfigAttrib( in isCompatibleHostConfig() 92 s_egl.eglGetConfigAttrib( in isCompatibleHostConfig() 111 s_egl.eglGetConfigAttrib(hostDisplay, in EmulatedEglConfig() 142 if (!s_egl.eglGetConfigs(display, NULL, 0, &numHostConfigs)) { in EmulatedEglConfigList() 147 s_egl.eglGetConfigs(display, hostConfigs.data(), numHostConfigs, &numHostConfigs); in EmulatedEglConfigList() 164 if (!s_egl.eglGetConfigs(mDisplay, NULL, 0, &numHostConfigs)) { in chooseConfig() 227 if (s_egl.eglChooseConfig(mDisplay, in chooseConfig() 232 return -s_egl.eglGetError(); in chooseConfig() [all …]
|
D | ColorBufferGl.cpp | 293 cb->m_eglImage = s_egl.eglCreateImageKHR( in create() 294 p_display, s_egl.eglGetCurrentContext(), EGL_GL_TEXTURE_2D_KHR, in create() 297 cb->m_blitEGLImage = s_egl.eglCreateImageKHR( in create() 298 p_display, s_egl.eglGetCurrentContext(), EGL_GL_TEXTURE_2D_KHR, in create() 338 s_egl.eglDestroyImageKHR(m_display, m_blitEGLImage); in ~ColorBufferGl() 341 s_egl.eglDestroyImageKHR(m_display, m_eglImage); in ~ColorBufferGl() 520 s_egl.eglDestroyImageKHR(m_display, m_eglImage); in reformat() 521 m_eglImage = s_egl.eglCreateImageKHR( in reformat() 522 m_display, s_egl.eglGetCurrentContext(), EGL_GL_TEXTURE_2D_KHR, in reformat() 525 s_egl.eglDestroyImageKHR(m_display, m_blitEGLImage); in reformat() [all …]
|
D | EmulatedEglContext.cpp | 72 if (stream && s_egl.eglLoadContext) { in createImpl() 73 context = s_egl.eglLoadContext(display, &contextAttribs[0], stream); in createImpl() 75 context = s_egl.eglCreateContext( in createImpl() 100 s_egl.eglDestroyContext(mDisplay, mContext); in ~EmulatedEglContext() 107 assert(s_egl.eglCreateContext); in onSave() 108 if (s_egl.eglSaveContext) { in onSave() 109 s_egl.eglSaveContext(mDisplay, mContext, static_cast<EGLStreamKHR>(stream)); in onSave()
|
D | GLESVersionDetector.cpp | 72 if (!s_egl.eglChooseConfig( in sTryContextCreation() 78 surface = s_egl.eglCreatePbufferSurface(dpy, config, pbufAttribs); in sTryContextCreation() 83 EGLContext ctx = s_egl.eglCreateContext(dpy, config, EGL_NO_CONTEXT, in sTryContextCreation() 87 s_egl.eglDestroySurface(dpy, surface); in sTryContextCreation() 90 s_egl.eglDestroyContext(dpy, ctx); in sTryContextCreation() 91 s_egl.eglDestroySurface(dpy, surface); in sTryContextCreation() 110 if (s_egl.eglGetMaxGLESVersion) { in calcMaxVersionFromDispatch() 112 (GLESDispatchMaxVersion)s_egl.eglGetMaxGLESVersion(dpy); in calcMaxVersionFromDispatch()
|
D | EmulatedEglFenceSync.cpp | 99 auto sync = s_egl.eglCreateSyncKHR(display, EGL_SYNC_FENCE_KHR, nullptr); in create() 101 ERR("Failed to create EGL fence sync: %d", s_egl.eglGetError()); in create() 142 s_egl.eglClientWaitSyncKHR(mDisplay, mSync, in wait() 150 s_egl.eglWaitSyncKHR(mDisplay, mSync, 0); in waitAsync() 156 s_egl.eglGetSyncAttribKHR( in isSignaled() 164 s_egl.eglDestroySyncKHR(mDisplay, mSync); in destroy()
|
D | EmulatedEglImage.cpp | 31 EGLImageKHR image = s_egl.eglCreateImageKHR(display, context, target, buffer, nullptr); in create() 59 EGLBoolean ret = s_egl.eglDestroyImageKHR(mEglDisplay, mEglImage); in destroy()
|
D | DisplayGl.cpp | 72 s_egl.eglSwapBuffers(surfaceGl->mDisplay, surfaceGl->mSurface); in post() 115 s_egl.eglSwapBuffers(surfaceGl->mDisplay, surfaceGl->mSurface); in clear()
|
/device/generic/vulkan-cereal/stream-servers/gl/OpenGLESDispatch/ |
D | EGLDispatch.cpp | 24 EGLDispatch s_egl; variable 27 s_egl.function_name = (function_name##_t)(::translator::egl::function_name); 30 if ((!s_egl. function_name) && s_egl.eglGetProcAddress) s_egl. function_name = \ 31 (function_name ## _t) s_egl.eglGetProcAddress(#function_name); \ 34 if (s_egl.eglGetProcAddress) s_egl. function_name = \ 35 (function_name ## _t) s_egl.eglGetProcAddress(#function_name); \ 36 if (!s_egl.function_name || !s_egl.eglGetProcAddress) \ 40 if (s_egl.initialized) return true; in init_egl_dispatch() 47 s_egl.initialized = true; in init_egl_dispatch()
|
D | GLESv2Dispatch.cpp | 41 if ((!dispatch_table->function_name) && s_egl.eglGetProcAddress) \ 43 reinterpret_cast<function_name##_t>(s_egl.eglGetProcAddress(#function_name));
|
D | GLESv1Dispatch.cpp | 108 if ((!dispatch_table->function_name) && s_egl.eglGetProcAddress) \ 110 reinterpret_cast<function_name##_t>(s_egl.eglGetProcAddress(#function_name));
|
D | OpenGLDispatchLoader.cpp | 74 return &s_egl; in get()
|
/device/generic/opengl-transport/host/libs/virglrenderer/OpenGLESDispatch/ |
D | EGLDispatch.cpp | 22 EGLDispatch s_egl; variable 27 s_egl.function_name = (function_name##_t)dlsym(handle, #function_name); 30 if ((!s_egl.function_name) && s_egl.eglGetProcAddress) \ 31 s_egl.function_name = (function_name##_t)s_egl.eglGetProcAddress(#function_name); 34 if (s_egl.eglGetProcAddress) \ 35 s_egl.function_name = (function_name##_t)s_egl.eglGetProcAddress(#function_name); \ 36 if (!s_egl.function_name || !s_egl.eglGetProcAddress) \
|
D | GLESv3Dispatch.cpp | 29 if ((!s_gles3.function_name) && s_egl.eglGetProcAddress) \ 30 s_gles3.function_name = (function_name##_t)s_egl.eglGetProcAddress(#function_name);
|
D | GLESv1Dispatch.cpp | 29 if ((!s_gles1.function_name) && s_egl.eglGetProcAddress) \ 30 s_gles1.function_name = (function_name##_t)s_egl.eglGetProcAddress(#function_name);
|
D | EGLDispatch.h | 41 extern EGLDispatch s_egl;
|
/device/generic/opengl-transport/host/libs/virglrenderer/ |
D | AVDVirglRenderer.cpp | 316 g_dpy = s_egl.eglGetDisplay(EGL_DEFAULT_DISPLAY); in virgl_renderer_init() 322 if (!s_egl.eglInitialize(g_dpy, nullptr, nullptr)) { in virgl_renderer_init() 329 if (!s_egl.eglGetConfigs(g_dpy, nullptr, 0, &nConfigs)) { in virgl_renderer_init() 331 s_egl.eglTerminate(g_dpy); in virgl_renderer_init() 337 if (!s_egl.eglGetConfigs(g_dpy, configs, nConfigs, &nConfigs)) { in virgl_renderer_init() 339 s_egl.eglTerminate(g_dpy); in virgl_renderer_init() 353 if (!s_egl.eglGetConfigAttrib(g_dpy, configs[c], EGL_CONFIG_ID, &configId)) { in virgl_renderer_init() 355 s_egl.eglTerminate(g_dpy); in virgl_renderer_init() 360 new (std::nothrow) EglConfig(g_dpy, configs[c], s_egl.eglGetConfigAttrib); in virgl_renderer_init() 374 if (!s_egl.eglChooseConfig(g_dpy, attrib_list, &config, 1, &num_config) || num_config != 1) { in virgl_renderer_init() [all …]
|
D | RenderControl.cpp | 216 return s_egl.eglInitialize(rc->dpy, major, minor); in rcGetEGLVersion() 221 const char* str = s_egl.eglQueryString(rc->dpy, name); in rcQueryEGLString() 333 EGLBoolean ret = s_egl.eglChooseConfig(rc->dpy, attribs, configs, configs_size, &num_config); in rcChooseConfig() 341 if (s_egl.eglGetConfigAttrib(rc->dpy, configs[i], EGL_CONFIG_ID, &config_id)) { in rcChooseConfig() 408 s_egl.eglCreateContext(rc->dpy, config->config, share_context, attrib_list); in rcCreateContext() 415 s_egl.eglDestroyContext(rc->dpy, context_); in rcCreateContext() 431 s_egl.eglDestroyContext(rc->dpy, context->context); in rcDestroyContext() 462 s_egl.eglDestroySurface(rc->dpy, surface->surface); in rcDestroyWindowSurface() 500 surface->surface = s_egl.eglCreatePbufferSurface(rc->dpy, surface->config, attrib_list); in rcSetWindowColorBuffer() 521 s_egl.eglCreateWindowSurface(rc->dpy, surface->config, native_window, nullptr); in rcSetWindowColorBuffer() [all …]
|
/device/generic/goldfish-opengl/system/GLESv1/ |
D | gl.cpp | 35 static EGLClient_eglInterface * s_egl = NULL; variable 156 if (s_egl) { in my_glGetString() 157 return (const GLubyte*)s_egl->getGLString(name); in my_glGetString() 180 s_egl = eglIface; in init_emul_gles()
|
/device/generic/goldfish-opengl/system/GLESv2/ |
D | gl2.cpp | 35 static EGLClient_eglInterface * s_egl = NULL; variable 162 if (s_egl) { in my_glGetString() 163 return (const GLubyte*)s_egl->getGLString(name); in my_glGetString() 185 s_egl = eglIface; in init_emul_gles()
|
/device/generic/vulkan-cereal/stream-servers/ |
D | FrameBuffer.cpp | 87 using gl::s_egl; 462 if (s_egl.eglFillUsages) { in fillGLESUsages() 463 s_egl.eglFillUsages(usages); in fillGLESUsages() 1353 if (!s_egl.eglReleaseThread()) { in drainGlRenderThreadResources() 1911 EGLContext prevContext = s_egl.eglGetCurrentContext(); in updateYUVTextures() 2135 if (!s_egl.eglMakeCurrent(getDisplay(), in bindContext() 2298 *contextOut = s_egl.eglCreateContext( in createSharedTrivialContext() 2304 *surfOut = s_egl.eglCreatePbufferSurface(getDisplay(), config->getHostEglConfig(), pbufAttribs); in createSharedTrivialContext() 2310 s_egl.eglDestroyContext(getDisplay(), context); in destroySharedTrivialContext() 2311 s_egl.eglDestroySurface(getDisplay(), surface); in destroySharedTrivialContext() [all …]
|
D | SyncThread.cpp | 363 EGLint error = gl::s_egl.eglGetError(); in doSyncWait()
|
/device/generic/vulkan-cereal/include/OpenGLESDispatch/ |
D | EGLDispatch.h | 67 extern EGLDispatch s_egl;
|