Lines Matching refs:ctx
838 eglDestroyContext(EGLDisplay dpy, EGLContext ctx)
841 _EGLContext *context = _eglLookupContext(ctx, disp);
856 EGLContext ctx)
859 _EGLContext *context = _eglLookupContext(ctx, disp);
872 ctx != EGL_NO_CONTEXT)
878 if (!context && ctx != EGL_NO_CONTEXT)
883 * To release the current context without assigning a new one, set ctx
886 if (!disp->Extensions.KHR_surfaceless_context && ctx != EGL_NO_CONTEXT)
919 eglQueryContext(EGLDisplay dpy, EGLContext ctx,
923 _EGLContext *context = _eglLookupContext(ctx, disp);
1305 _EGLContext *ctx = _eglGetCurrentContext();
1306 _EGLSurface *surf = ctx ? ctx->DrawSurface : NULL;
1312 if (_eglGetContextHandle(ctx) == EGL_NO_CONTEXT ||
1313 ctx->Resource.Display != disp)
1341 _EGLContext *ctx = _eglGetCurrentContext();
1351 if (_eglGetContextHandle(ctx) == EGL_NO_CONTEXT ||
1352 surf != ctx->DrawSurface)
1387 _EGLContext *ctx = _eglGetCurrentContext();
1393 if (_eglGetContextHandle(ctx) == EGL_NO_CONTEXT ||
1394 surf != ctx->DrawSurface)
1470 _EGLContext *ctx = _eglGetCurrentContext();
1474 if (_eglGetContextHandle(ctx) == EGL_NO_CONTEXT ||
1476 ctx->DrawSurface != surf ||
1521 _EGLContext *ctx = _eglGetCurrentContext();
1525 if (!ctx)
1528 disp = ctx->Resource.Display;
1532 if (_eglGetContextHandle(ctx) == EGL_NO_CONTEXT ||
1533 _eglGetSurfaceHandle(ctx->DrawSurface) == EGL_NO_SURFACE)
1538 ret = disp->Driver->WaitClient(disp, ctx);
1562 _EGLContext *ctx = _eglGetCurrentContext();
1566 if (!ctx)
1571 disp = ctx->Resource.Display;
1575 if (_eglGetContextHandle(ctx) == EGL_NO_CONTEXT ||
1576 _eglGetSurfaceHandle(ctx->DrawSurface) == EGL_NO_SURFACE)
1590 _EGLContext *ctx = _eglGetCurrentContext();
1593 ret = (ctx) ? _eglGetDisplayHandle(ctx->Resource.Display) : EGL_NO_DISPLAY;
1602 _EGLContext *ctx = _eglGetCurrentContext();
1605 ret = _eglGetContextHandle(ctx);
1614 _EGLContext *ctx = _eglGetCurrentContext();
1621 if (!ctx)
1626 surf = ctx->DrawSurface;
1629 surf = ctx->ReadSurface;
1663 * eglMakeCurrent(when the ctx parameter is EGL NO CONTEXT)
1724 _EGLContext *ctx = t->CurrentContext;
1728 if (ctx) {
1729 _EGLDisplay *disp = ctx->Resource.Display;
1743 _eglCreateImageCommon(_EGLDisplay *disp, EGLContext ctx, EGLenum target,
1746 _EGLContext *context = _eglLookupContext(ctx, disp);
1753 if (!context && ctx != EGL_NO_CONTEXT)
1756 * <ctx> must be EGL_NO_CONTEXT..."
1758 if (ctx != EGL_NO_CONTEXT && target == EGL_LINUX_DMA_BUF_EXT)
1768 eglCreateImageKHR(EGLDisplay dpy, EGLContext ctx, EGLenum target,
1773 return _eglCreateImageCommon(disp, ctx, target, buffer, attr_list);
1778 eglCreateImage(EGLDisplay dpy, EGLContext ctx, EGLenum target,
1791 image = _eglCreateImageCommon(disp, ctx, target, buffer, int_attribs);
1838 _EGLContext *ctx = _eglGetCurrentContext();
1861 if (!ctx &&
1866 if (ctx && (ctx->Resource.Display != disp ||
1867 (ctx->ClientAPI != EGL_OPENGL_ES_API &&
1868 ctx->ClientAPI != EGL_OPENGL_API)))
2041 _EGLContext *ctx = _eglGetCurrentContext();
2048 if (ctx == EGL_NO_CONTEXT ||
2049 (ctx->ClientAPI != EGL_OPENGL_ES_API &&
2050 ctx->ClientAPI != EGL_OPENGL_API))
2186 _EGLContext *ctx = _eglGetCurrentContext();
2199 if (_eglGetContextHandle(ctx) == EGL_NO_CONTEXT ||
2200 surf != ctx->DrawSurface)
2764 _EGLDisplay **disp, _EGLContext **ctx)
2774 *ctx = _eglLookupContext(context, *disp);
2775 if (!*ctx ||
2776 ((*ctx)->ClientAPI != EGL_OPENGL_API &&
2777 (*ctx)->ClientAPI != EGL_OPENGL_ES_API)) {
2790 _EGLContext *ctx;
2793 ret = _eglLockDisplayInterop(dpy, context, &disp, &ctx);
2798 ret = disp->Driver->GLInteropQueryDeviceInfo(disp, ctx, out);
2812 _EGLContext *ctx;
2815 ret = _eglLockDisplayInterop(dpy, context, &disp, &ctx);
2820 ret = disp->Driver->GLInteropExportObject(disp, ctx, in, out);