Lines Matching refs:surf
144 #define _EGL_CHECK_SURFACE(disp, surf, ret, drv) \ argument
145 _EGL_CHECK_OBJECT(disp, Surface, surf, ret, drv)
179 _eglCheckSurface(_EGLDisplay *disp, _EGLSurface *surf, const char *msg) in _eglCheckSurface() argument
184 if (!surf) { in _eglCheckSurface()
527 _EGLSurface *surf; in eglCreateWindowSurface() local
534 surf = drv->API.CreateWindowSurface(drv, disp, conf, window, attrib_list); in eglCreateWindowSurface()
535 ret = (surf) ? _eglLinkSurface(surf) : EGL_NO_SURFACE; in eglCreateWindowSurface()
548 _EGLSurface *surf; in eglCreatePixmapSurface() local
555 surf = drv->API.CreatePixmapSurface(drv, disp, conf, pixmap, attrib_list); in eglCreatePixmapSurface()
556 ret = (surf) ? _eglLinkSurface(surf) : EGL_NO_SURFACE; in eglCreatePixmapSurface()
569 _EGLSurface *surf; in eglCreatePbufferSurface() local
574 surf = drv->API.CreatePbufferSurface(drv, disp, conf, attrib_list); in eglCreatePbufferSurface()
575 ret = (surf) ? _eglLinkSurface(surf) : EGL_NO_SURFACE; in eglCreatePbufferSurface()
585 _EGLSurface *surf = _eglLookupSurface(surface, disp); in eglDestroySurface() local
589 _EGL_CHECK_SURFACE(disp, surf, EGL_FALSE, drv); in eglDestroySurface()
590 _eglUnlinkSurface(surf); in eglDestroySurface()
591 ret = drv->API.DestroySurface(drv, disp, surf); in eglDestroySurface()
601 _EGLSurface *surf = _eglLookupSurface(surface, disp); in eglQuerySurface() local
605 _EGL_CHECK_SURFACE(disp, surf, EGL_FALSE, drv); in eglQuerySurface()
606 ret = drv->API.QuerySurface(drv, disp, surf, attribute, value); in eglQuerySurface()
616 _EGLSurface *surf = _eglLookupSurface(surface, disp); in eglSurfaceAttrib() local
620 _EGL_CHECK_SURFACE(disp, surf, EGL_FALSE, drv); in eglSurfaceAttrib()
621 ret = drv->API.SurfaceAttrib(drv, disp, surf, attribute, value); in eglSurfaceAttrib()
631 _EGLSurface *surf = _eglLookupSurface(surface, disp); in eglBindTexImage() local
635 _EGL_CHECK_SURFACE(disp, surf, EGL_FALSE, drv); in eglBindTexImage()
636 ret = drv->API.BindTexImage(drv, disp, surf, buffer); in eglBindTexImage()
646 _EGLSurface *surf = _eglLookupSurface(surface, disp); in eglReleaseTexImage() local
650 _EGL_CHECK_SURFACE(disp, surf, EGL_FALSE, drv); in eglReleaseTexImage()
651 ret = drv->API.ReleaseTexImage(drv, disp, surf, buffer); in eglReleaseTexImage()
662 _EGLSurface *surf; in eglSwapInterval() local
672 surf = ctx->DrawSurface; in eglSwapInterval()
673 if (_eglGetSurfaceHandle(surf) == EGL_NO_SURFACE) in eglSwapInterval()
676 ret = drv->API.SwapInterval(drv, disp, surf, interval); in eglSwapInterval()
687 _EGLSurface *surf = _eglLookupSurface(surface, disp); in eglSwapBuffers() local
691 _EGL_CHECK_SURFACE(disp, surf, EGL_FALSE, drv); in eglSwapBuffers()
695 surf != ctx->DrawSurface) in eglSwapBuffers()
698 ret = drv->API.SwapBuffers(drv, disp, surf); in eglSwapBuffers()
708 _EGLSurface *surf = _eglLookupSurface(surface, disp); in eglCopyBuffers() local
712 _EGL_CHECK_SURFACE(disp, surf, EGL_FALSE, drv); in eglCopyBuffers()
715 ret = drv->API.CopyBuffers(drv, disp, surf, target); in eglCopyBuffers()
824 _EGLSurface *surf; in eglGetCurrentSurface() local
832 surf = ctx->DrawSurface; in eglGetCurrentSurface()
835 surf = ctx->ReadSurface; in eglGetCurrentSurface()
838 surf = NULL; in eglGetCurrentSurface()
843 ret = _eglGetSurfaceHandle(surf); in eglGetCurrentSurface()
1066 _EGLSurface *surf; in eglCreateScreenSurfaceMESA() local
1071 surf = drv->API.CreateScreenSurfaceMESA(drv, disp, conf, attrib_list); in eglCreateScreenSurfaceMESA()
1072 ret = (surf) ? _eglLinkSurface(surf) : EGL_NO_SURFACE; in eglCreateScreenSurfaceMESA()
1084 _EGLSurface *surf = _eglLookupSurface(surface, disp); in eglShowScreenSurfaceMESA() local
1090 if (!surf && surface != EGL_NO_SURFACE) in eglShowScreenSurfaceMESA()
1095 ret = drv->API.ShowScreenSurfaceMESA(drv, disp, scrn, surf, m); in eglShowScreenSurfaceMESA()
1139 _EGLSurface *surf; in eglQueryScreenSurfaceMESA() local
1143 ret = drv->API.QueryScreenSurfaceMESA(drv, disp, scrn, &surf); in eglQueryScreenSurfaceMESA()
1145 *surface = _eglGetSurfaceHandle(surf); in eglQueryScreenSurfaceMESA()
1254 _EGLSurface *surf; in eglCreatePbufferFromClientBuffer() local
1259 surf = drv->API.CreatePbufferFromClientBuffer(drv, disp, buftype, buffer, in eglCreatePbufferFromClientBuffer()
1261 ret = (surf) ? _eglLinkSurface(surf) : EGL_NO_SURFACE; in eglCreatePbufferFromClientBuffer()
1438 _EGLSurface *surf = _eglLookupSurface(surface, disp); in eglSwapBuffersRegionNOK() local
1442 _EGL_CHECK_SURFACE(disp, surf, EGL_FALSE, drv); in eglSwapBuffersRegionNOK()
1449 surf != ctx->DrawSurface) in eglSwapBuffersRegionNOK()
1452 ret = drv->API.SwapBuffersRegionNOK(drv, disp, surf, numRects, rects); in eglSwapBuffersRegionNOK()
1567 _EGLSurface *surf = _eglLookupSurface(surface, disp); in eglPostSubBufferNV() local
1571 _EGL_CHECK_SURFACE(disp, surf, EGL_FALSE, drv); in eglPostSubBufferNV()
1576 ret = drv->API.PostSubBufferNV(drv, disp, surf, x, y, width, height); in eglPostSubBufferNV()