Lines Matching refs:drv
130 #define _EGL_CHECK_DISPLAY(disp, ret, drv) \ argument
132 drv = _eglCheckDisplay(disp, __FUNCTION__); \
133 if (!drv) \
137 #define _EGL_CHECK_OBJECT(disp, type, obj, ret, drv) \ argument
139 drv = _eglCheck ## type(disp, obj, __FUNCTION__); \
140 if (!drv) \
144 #define _EGL_CHECK_SURFACE(disp, surf, ret, drv) \ argument
145 _EGL_CHECK_OBJECT(disp, Surface, surf, ret, drv)
147 #define _EGL_CHECK_CONTEXT(disp, context, ret, drv) \ argument
148 _EGL_CHECK_OBJECT(disp, Context, context, ret, drv)
150 #define _EGL_CHECK_CONFIG(disp, conf, ret, drv) \ argument
151 _EGL_CHECK_OBJECT(disp, Config, conf, ret, drv)
153 #define _EGL_CHECK_SCREEN(disp, scrn, ret, drv) \ argument
154 _EGL_CHECK_OBJECT(disp, Screen, scrn, ret, drv)
156 #define _EGL_CHECK_MODE(disp, m, ret, drv) \ argument
157 _EGL_CHECK_OBJECT(disp, Mode, m, ret, drv)
159 #define _EGL_CHECK_SYNC(disp, s, ret, drv) \ argument
160 _EGL_CHECK_OBJECT(disp, Sync, s, ret, drv)
181 _EGLDriver *drv = _eglCheckDisplay(disp, msg); in _eglCheckSurface() local
182 if (!drv) in _eglCheckSurface()
188 return drv; in _eglCheckSurface()
195 _EGLDriver *drv = _eglCheckDisplay(disp, msg); in _eglCheckContext() local
196 if (!drv) in _eglCheckContext()
202 return drv; in _eglCheckContext()
209 _EGLDriver *drv = _eglCheckDisplay(disp, msg); in _eglCheckConfig() local
210 if (!drv) in _eglCheckConfig()
216 return drv; in _eglCheckConfig()
223 _EGLDriver *drv = _eglCheckDisplay(disp, msg); in _eglCheckSync() local
224 if (!drv) in _eglCheckSync()
230 return drv; in _eglCheckSync()
240 _EGLDriver *drv = _eglCheckDisplay(disp, msg); in _eglCheckScreen() local
241 if (!drv) in _eglCheckScreen()
247 return drv; in _eglCheckScreen()
254 _EGLDriver *drv = _eglCheckDisplay(disp, msg); in _eglCheckMode() local
255 if (!drv) in _eglCheckMode()
261 return drv; in _eglCheckMode()
343 _EGLDriver *drv = disp->Driver; in eglTerminate() local
345 drv->API.Terminate(drv, disp); in eglTerminate()
358 _EGLDriver *drv; in eglQueryString() local
361 _EGL_CHECK_DISPLAY(disp, NULL, drv); in eglQueryString()
362 ret = drv->API.QueryString(drv, disp, name); in eglQueryString()
373 _EGLDriver *drv; in eglGetConfigs() local
376 _EGL_CHECK_DISPLAY(disp, EGL_FALSE, drv); in eglGetConfigs()
377 ret = drv->API.GetConfigs(drv, disp, configs, config_size, num_config); in eglGetConfigs()
388 _EGLDriver *drv; in eglChooseConfig() local
391 _EGL_CHECK_DISPLAY(disp, EGL_FALSE, drv); in eglChooseConfig()
392 ret = drv->API.ChooseConfig(drv, disp, attrib_list, configs, in eglChooseConfig()
405 _EGLDriver *drv; in eglGetConfigAttrib() local
408 _EGL_CHECK_CONFIG(disp, conf, EGL_FALSE, drv); in eglGetConfigAttrib()
409 ret = drv->API.GetConfigAttrib(drv, disp, conf, attribute, value); in eglGetConfigAttrib()
422 _EGLDriver *drv; in eglCreateContext() local
426 _EGL_CHECK_DISPLAY(disp, EGL_NO_CONTEXT, drv); in eglCreateContext()
437 context = drv->API.CreateContext(drv, disp, conf, share, attrib_list); in eglCreateContext()
449 _EGLDriver *drv; in eglDestroyContext() local
452 _EGL_CHECK_CONTEXT(disp, context, EGL_FALSE, drv); in eglDestroyContext()
454 ret = drv->API.DestroyContext(drv, disp, context); in eglDestroyContext()
468 _EGLDriver *drv; in eglMakeCurrent() local
473 drv = disp->Driver; in eglMakeCurrent()
481 if (!drv) in eglMakeCurrent()
498 ret = drv->API.MakeCurrent(drv, disp, draw_surf, read_surf, context); in eglMakeCurrent()
510 _EGLDriver *drv; in eglQueryContext() local
513 _EGL_CHECK_CONTEXT(disp, context, EGL_FALSE, drv); in eglQueryContext()
514 ret = drv->API.QueryContext(drv, disp, context, attribute, value); in eglQueryContext()
526 _EGLDriver *drv; in eglCreateWindowSurface() local
530 _EGL_CHECK_CONFIG(disp, conf, EGL_NO_SURFACE, drv); in eglCreateWindowSurface()
534 surf = drv->API.CreateWindowSurface(drv, disp, conf, window, attrib_list); in eglCreateWindowSurface()
547 _EGLDriver *drv; in eglCreatePixmapSurface() local
551 _EGL_CHECK_CONFIG(disp, conf, EGL_NO_SURFACE, drv); in eglCreatePixmapSurface()
555 surf = drv->API.CreatePixmapSurface(drv, disp, conf, pixmap, attrib_list); in eglCreatePixmapSurface()
568 _EGLDriver *drv; in eglCreatePbufferSurface() local
572 _EGL_CHECK_CONFIG(disp, conf, EGL_NO_SURFACE, drv); in eglCreatePbufferSurface()
574 surf = drv->API.CreatePbufferSurface(drv, disp, conf, attrib_list); in eglCreatePbufferSurface()
586 _EGLDriver *drv; in eglDestroySurface() local
589 _EGL_CHECK_SURFACE(disp, surf, EGL_FALSE, drv); in eglDestroySurface()
591 ret = drv->API.DestroySurface(drv, disp, surf); in eglDestroySurface()
602 _EGLDriver *drv; 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()
617 _EGLDriver *drv; 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()
632 _EGLDriver *drv; 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()
647 _EGLDriver *drv; 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()
663 _EGLDriver *drv; in eglSwapInterval() local
666 _EGL_CHECK_DISPLAY(disp, EGL_FALSE, drv); in eglSwapInterval()
676 ret = drv->API.SwapInterval(drv, disp, surf, interval); in eglSwapInterval()
688 _EGLDriver *drv; in eglSwapBuffers() local
691 _EGL_CHECK_SURFACE(disp, surf, EGL_FALSE, drv); in eglSwapBuffers()
698 ret = drv->API.SwapBuffers(drv, disp, surf); in eglSwapBuffers()
709 _EGLDriver *drv; 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()
726 _EGLDriver *drv; in eglWaitClient() local
742 drv = disp->Driver; in eglWaitClient()
743 ret = drv->API.WaitClient(drv, disp, ctx); in eglWaitClient()
772 _EGLDriver *drv; in eglWaitNative() local
788 drv = disp->Driver; in eglWaitNative()
789 ret = drv->API.WaitNative(drv, disp, engine); in eglWaitNative()
980 _EGLDriver *drv; in eglChooseModeMESA() local
983 _EGL_CHECK_SCREEN(disp, scrn, EGL_FALSE, drv); in eglChooseModeMESA()
984 ret = drv->API.ChooseModeMESA(drv, disp, scrn, attrib_list, in eglChooseModeMESA()
997 _EGLDriver *drv; in eglGetModesMESA() local
1000 _EGL_CHECK_SCREEN(disp, scrn, EGL_FALSE, drv); in eglGetModesMESA()
1001 ret = drv->API.GetModesMESA(drv, disp, scrn, modes, mode_size, num_mode); in eglGetModesMESA()
1013 _EGLDriver *drv; in eglGetModeAttribMESA() local
1016 _EGL_CHECK_MODE(disp, m, EGL_FALSE, drv); in eglGetModeAttribMESA()
1017 ret = drv->API.GetModeAttribMESA(drv, disp, m, attribute, value); in eglGetModeAttribMESA()
1030 _EGLDriver *drv; in eglCopyContextMESA() local
1033 _EGL_CHECK_CONTEXT(disp, source_context, EGL_FALSE, drv); in eglCopyContextMESA()
1037 ret = drv->API.CopyContextMESA(drv, disp, in eglCopyContextMESA()
1049 _EGLDriver *drv; in eglGetScreensMESA() local
1052 _EGL_CHECK_DISPLAY(disp, EGL_FALSE, drv); in eglGetScreensMESA()
1053 ret = drv->API.GetScreensMESA(drv, disp, screens, max_screens, num_screens); in eglGetScreensMESA()
1065 _EGLDriver *drv; in eglCreateScreenSurfaceMESA() local
1069 _EGL_CHECK_CONFIG(disp, conf, EGL_NO_SURFACE, drv); in eglCreateScreenSurfaceMESA()
1071 surf = drv->API.CreateScreenSurfaceMESA(drv, disp, conf, attrib_list); in eglCreateScreenSurfaceMESA()
1086 _EGLDriver *drv; in eglShowScreenSurfaceMESA() local
1089 _EGL_CHECK_SCREEN(disp, scrn, EGL_FALSE, drv); in eglShowScreenSurfaceMESA()
1095 ret = drv->API.ShowScreenSurfaceMESA(drv, disp, scrn, surf, m); in eglShowScreenSurfaceMESA()
1106 _EGLDriver *drv; in eglScreenPositionMESA() local
1109 _EGL_CHECK_SCREEN(disp, scrn, EGL_FALSE, drv); in eglScreenPositionMESA()
1110 ret = drv->API.ScreenPositionMESA(drv, disp, scrn, x, y); in eglScreenPositionMESA()
1122 _EGLDriver *drv; in eglQueryScreenMESA() local
1125 _EGL_CHECK_SCREEN(disp, scrn, EGL_FALSE, drv); in eglQueryScreenMESA()
1126 ret = drv->API.QueryScreenMESA(drv, disp, scrn, attribute, value); in eglQueryScreenMESA()
1138 _EGLDriver *drv; in eglQueryScreenSurfaceMESA() local
1142 _EGL_CHECK_SCREEN(disp, scrn, EGL_FALSE, drv); in eglQueryScreenSurfaceMESA()
1143 ret = drv->API.QueryScreenSurfaceMESA(drv, disp, scrn, &surf); in eglQueryScreenSurfaceMESA()
1156 _EGLDriver *drv; in eglQueryScreenModeMESA() local
1160 _EGL_CHECK_SCREEN(disp, scrn, EGL_FALSE, drv); in eglQueryScreenModeMESA()
1161 ret = drv->API.QueryScreenModeMESA(drv, disp, scrn, &m); in eglQueryScreenModeMESA()
1174 _EGLDriver *drv; in eglQueryModeStringMESA() local
1177 _EGL_CHECK_MODE(disp, m, NULL, drv); in eglQueryModeStringMESA()
1178 ret = drv->API.QueryModeStringMESA(drv, disp, m); in eglQueryModeStringMESA()
1253 _EGLDriver *drv; in eglCreatePbufferFromClientBuffer() local
1257 _EGL_CHECK_CONFIG(disp, conf, EGL_NO_SURFACE, drv); in eglCreatePbufferFromClientBuffer()
1259 surf = drv->API.CreatePbufferFromClientBuffer(drv, disp, buftype, buffer, in eglCreatePbufferFromClientBuffer()
1280 _EGLDriver *drv; in eglReleaseThread() local
1285 drv = disp->Driver; in eglReleaseThread()
1286 (void) drv->API.MakeCurrent(drv, disp, NULL, NULL, NULL); in eglReleaseThread()
1306 _EGLDriver *drv; in eglCreateImageKHR() local
1310 _EGL_CHECK_DISPLAY(disp, EGL_NO_IMAGE_KHR, drv); in eglCreateImageKHR()
1316 img = drv->API.CreateImageKHR(drv, in eglCreateImageKHR()
1329 _EGLDriver *drv; in eglDestroyImageKHR() local
1332 _EGL_CHECK_DISPLAY(disp, EGL_FALSE, drv); in eglDestroyImageKHR()
1339 ret = drv->API.DestroyImageKHR(drv, disp, img); in eglDestroyImageKHR()
1349 _EGLDriver *drv; in eglCreateSyncKHR() local
1353 _EGL_CHECK_DISPLAY(disp, EGL_NO_SYNC_KHR, drv); in eglCreateSyncKHR()
1357 sync = drv->API.CreateSyncKHR(drv, disp, type, attrib_list); in eglCreateSyncKHR()
1369 _EGLDriver *drv; in eglDestroySyncKHR() local
1372 _EGL_CHECK_SYNC(disp, s, EGL_FALSE, drv); in eglDestroySyncKHR()
1376 ret = drv->API.DestroySyncKHR(drv, disp, s); in eglDestroySyncKHR()
1387 _EGLDriver *drv; in eglClientWaitSyncKHR() local
1390 _EGL_CHECK_SYNC(disp, s, EGL_FALSE, drv); in eglClientWaitSyncKHR()
1392 ret = drv->API.ClientWaitSyncKHR(drv, disp, s, flags, timeout); in eglClientWaitSyncKHR()
1403 _EGLDriver *drv; in eglSignalSyncKHR() local
1406 _EGL_CHECK_SYNC(disp, s, EGL_FALSE, drv); in eglSignalSyncKHR()
1408 ret = drv->API.SignalSyncKHR(drv, disp, s, mode); in eglSignalSyncKHR()
1419 _EGLDriver *drv; in eglGetSyncAttribKHR() local
1422 _EGL_CHECK_SYNC(disp, s, EGL_FALSE, drv); in eglGetSyncAttribKHR()
1424 ret = drv->API.GetSyncAttribKHR(drv, disp, s, attribute, value); in eglGetSyncAttribKHR()
1439 _EGLDriver *drv; in eglSwapBuffersRegionNOK() local
1442 _EGL_CHECK_SURFACE(disp, surf, EGL_FALSE, drv); in eglSwapBuffersRegionNOK()
1452 ret = drv->API.SwapBuffersRegionNOK(drv, disp, surf, numRects, rects); in eglSwapBuffersRegionNOK()
1466 _EGLDriver *drv; in eglCreateDRMImageMESA() local
1470 _EGL_CHECK_DISPLAY(disp, EGL_NO_IMAGE_KHR, drv); in eglCreateDRMImageMESA()
1474 img = drv->API.CreateDRMImageMESA(drv, disp, attr_list); in eglCreateDRMImageMESA()
1486 _EGLDriver *drv; in eglExportDRMImageMESA() local
1489 _EGL_CHECK_DISPLAY(disp, EGL_FALSE, drv); in eglExportDRMImageMESA()
1495 ret = drv->API.ExportDRMImageMESA(drv, disp, img, name, handle, stride); in eglExportDRMImageMESA()
1509 _EGLDriver *drv; in eglBindWaylandDisplayWL() local
1512 _EGL_CHECK_DISPLAY(disp, EGL_FALSE, drv); in eglBindWaylandDisplayWL()
1518 ret = drv->API.BindWaylandDisplayWL(drv, disp, display); in eglBindWaylandDisplayWL()
1527 _EGLDriver *drv; in eglUnbindWaylandDisplayWL() local
1530 _EGL_CHECK_DISPLAY(disp, EGL_FALSE, drv); in eglUnbindWaylandDisplayWL()
1536 ret = drv->API.UnbindWaylandDisplayWL(drv, disp, display); in eglUnbindWaylandDisplayWL()
1546 _EGLDriver *drv; in eglQueryWaylandBufferWL() local
1549 _EGL_CHECK_DISPLAY(disp, EGL_FALSE, drv); in eglQueryWaylandBufferWL()
1555 ret = drv->API.QueryWaylandBufferWL(drv, disp, buffer, attribute, value); in eglQueryWaylandBufferWL()
1568 _EGLDriver *drv; 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()