Lines Matching defs:context

64  * Some of the entry points use current display, context, or surface
158 #define _EGL_CHECK_CONTEXT(disp, context, ret) \
159 _EGL_CHECK_OBJECT(disp, Context, context, ret)
206 _eglCheckContext(_EGLDisplay *disp, _EGLContext *context, const char *msg)
210 if (!context) {
815 _EGLContext *context;
830 context = disp->Driver->CreateContext(disp, conf, share, attrib_list);
831 ret = (context) ? _eglLinkContext(context) : EGL_NO_CONTEXT;
841 _EGLContext *context = _eglLookupContext(ctx, disp);
844 _EGL_FUNC_START(disp, EGL_OBJECT_CONTEXT_KHR, context, EGL_FALSE);
846 _EGL_CHECK_CONTEXT(disp, context, EGL_FALSE);
847 _eglUnlinkContext(context);
848 ret = disp->Driver->DestroyContext(disp, context);
859 _EGLContext *context = _eglLookupContext(ctx, disp);
864 _EGL_FUNC_START(disp, EGL_OBJECT_CONTEXT_KHR, context, EGL_FALSE);
878 if (!context && ctx != EGL_NO_CONTEXT)
883 * To release the current context without assigning a new one, set ctx
912 ret = disp->Driver->MakeCurrent(disp, draw_surf, read_surf, context);
923 _EGLContext *context = _eglLookupContext(ctx, disp);
926 _EGL_FUNC_START(disp, EGL_OBJECT_CONTEXT_KHR, context, EGL_FALSE);
928 _EGL_CHECK_CONTEXT(disp, context, EGL_FALSE);
930 ret = _eglQueryContext(context, attribute, value);
1349 /* surface must be bound to current context in EGL 1.4 */
1392 /* surface must be bound to current context in EGL 1.4 */
1531 /* let bad current context imply bad current surface */
1536 /* a valid current context implies an initialized current display */
1574 /* let bad current context imply bad current surface */
1579 /* a valid current context implies an initialized current display */
1746 _EGLContext *context = _eglLookupContext(ctx, disp);
1753 if (!context && ctx != EGL_NO_CONTEXT)
1761 img = disp->Driver->CreateImageKHR(disp, context, target, buffer, attr_list);
1857 /* If type is EGL_SYNC_FENCE and no context is current for the bound API
2198 /* surface must be bound to current context in EGL 1.4 */
2763 _eglLockDisplayInterop(EGLDisplay dpy, EGLContext context,
2774 *ctx = _eglLookupContext(context, *disp);
2786 MesaGLInteropEGLQueryDeviceInfo(EGLDisplay dpy, EGLContext context,
2793 ret = _eglLockDisplayInterop(dpy, context, &disp, &ctx);
2807 MesaGLInteropEGLExportObject(EGLDisplay dpy, EGLContext context,
2815 ret = _eglLockDisplayInterop(dpy, context, &disp, &ctx);