Lines Matching refs:GLX_drv
224 convert_fbconfig(struct GLX_egl_driver *GLX_drv,
233 err = GLX_drv->glXGetFBConfigAttrib(dpy, fbconfig, GLX_RENDER_TYPE, &val);
238 err = GLX_drv->glXGetFBConfigAttrib(dpy, fbconfig, GLX_DOUBLEBUFFER, &val);
254 err = GLX_drv->glXGetFBConfigAttrib(dpy, fbconfig, attr, &val);
361 convert_visual(struct GLX_egl_driver *GLX_drv,
370 err = GLX_drv->glXGetConfig(dpy, vinfo, GLX_USE_GL, &val);
372 err = GLX_drv->glXGetConfig(dpy, vinfo, GLX_RGBA, &val);
377 err = GLX_drv->glXGetConfig(dpy, vinfo, GLX_DOUBLEBUFFER, &val);
401 err = GLX_drv->glXGetConfig(dpy, vinfo, attr, &val);
468 struct GLX_egl_driver *GLX_drv = GLX_egl_driver(drv);
475 GLX_drv->glXGetFBConfigs(GLX_dpy->dpy, screen, &num_configs);
497 ok = convert_fbconfig(GLX_drv, GLX_dpy,
501 ok = convert_visual(GLX_drv, GLX_dpy,
528 check_extensions(struct GLX_egl_driver *GLX_drv,
532 GLX_drv->glXQueryExtensionsString(GLX_dpy->dpy, screen);
545 if (GLX_drv->glXCreateGLXPbufferSGIX &&
546 GLX_drv->glXDestroyGLXPbufferSGIX &&
562 check_quirks(struct GLX_egl_driver *GLX_drv,
570 vendor = GLX_drv->glXGetClientString(GLX_dpy->dpy, GLX_VENDOR);
572 vendor = GLX_drv->glXQueryServerString(GLX_dpy->dpy, screen, GLX_VENDOR);
583 * Called via eglInitialize(), GLX_drv->API.Initialize().
588 struct GLX_egl_driver *GLX_drv = GLX_egl_driver(drv);
615 if (!GLX_drv->glXQueryVersion(GLX_dpy->dpy,
627 check_extensions(GLX_drv, GLX_dpy, DefaultScreen(GLX_dpy->dpy));
628 check_quirks(GLX_drv, GLX_dpy, DefaultScreen(GLX_dpy->dpy));
680 struct GLX_egl_driver *GLX_drv = GLX_egl_driver(drv);
696 GLX_ctx->context = GLX_drv->glXCreateNewContext(GLX_dpy->dpy,
703 GLX_ctx->context = GLX_drv->glXCreateContext(GLX_dpy->dpy,
722 struct GLX_egl_driver *GLX_drv = GLX_egl_driver(drv);
728 GLX_drv->glXDestroyContext(GLX_dpy->dpy, GLX_ctx->context);
759 struct GLX_egl_driver *GLX_drv = GLX_egl_driver(drv);
779 ret = GLX_drv->glXMakeContextCurrent(GLX_dpy->dpy, ddraw, rdraw, cctx);
781 ret = GLX_drv->glXMakeCurrent(GLX_dpy->dpy, ddraw, cctx);
832 struct GLX_egl_driver *GLX_drv = GLX_egl_driver(drv);
852 GLX_surf->glx_drawable = GLX_drv->glXCreateWindow(GLX_dpy->dpy,
866 GLX_surf->destroy = GLX_drv->glXDestroyWindow;
880 struct GLX_egl_driver *GLX_drv = GLX_egl_driver(drv);
900 GLX_surf->glx_drawable = GLX_drv->glXCreatePixmap(GLX_dpy->dpy,
908 vinfo = GLX_drv->glXGetVisualFromFBConfig(GLX_dpy->dpy, fbconfig);
910 GLX_surf->glx_drawable = GLX_drv->glXCreateGLXPixmap(GLX_dpy->dpy,
916 GLX_surf->glx_drawable = GLX_drv->glXCreateGLXPixmap(GLX_dpy->dpy,
927 GLX_drv->glXDestroyPixmap : GLX_drv->glXDestroyGLXPixmap;
940 struct GLX_egl_driver *GLX_drv = GLX_egl_driver(drv);
975 GLX_surf->glx_drawable = GLX_drv->glXCreatePbuffer(GLX_dpy->dpy,
979 GLX_surf->glx_drawable = GLX_drv->glXCreateGLXPbufferSGIX(GLX_dpy->dpy,
992 GLX_drv->glXDestroyPbuffer : GLX_drv->glXDestroyGLXPbufferSGIX;
1013 struct GLX_egl_driver *GLX_drv = GLX_egl_driver(drv);
1017 GLX_drv->glXSwapBuffers(GLX_dpy->dpy, GLX_surf->glx_drawable);
1028 struct GLX_egl_driver *GLX_drv = GLX_egl_driver(drv);
1030 return (_EGLProc) GLX_drv->glXGetProcAddress((const GLubyte *) procname);
1036 struct GLX_egl_driver *GLX_drv = GLX_egl_driver(drv);
1041 GLX_drv->glXWaitGL();
1048 struct GLX_egl_driver *GLX_drv = GLX_egl_driver(drv);
1054 GLX_drv->glXWaitX();
1061 struct GLX_egl_driver *GLX_drv = GLX_egl_driver(drv);
1063 if (GLX_drv->handle)
1064 dlclose(GLX_drv->handle);
1065 free(GLX_drv);
1072 struct GLX_egl_driver *GLX_drv = GLX_egl_driver(drv);
1075 GLX_drv->glXGetProcAddress = dlsym(RTLD_DEFAULT, "glXGetProcAddress");
1076 if (!GLX_drv->glXGetProcAddress)
1077 GLX_drv->glXGetProcAddress = dlsym(RTLD_DEFAULT, "glXGetProcAddressARB");
1078 if (!GLX_drv->glXGetProcAddress) {
1083 GLX_drv->glXGetProcAddress = dlsym(handle, "glXGetProcAddress");
1084 if (!GLX_drv->glXGetProcAddress)
1085 GLX_drv->glXGetProcAddress = dlsym(handle, "glXGetProcAddressARB");
1086 if (!GLX_drv->glXGetProcAddress)
1092 GLX_drv->proc_name = (proc_type) \
1093 GLX_drv->glXGetProcAddress((const GLubyte *) #proc_name); \
1094 if (check && !GLX_drv->proc_name) goto fail; \
1134 GLX_drv->handle = handle;
1152 struct GLX_egl_driver *GLX_drv = CALLOC_STRUCT(GLX_egl_driver);
1156 if (!GLX_drv)
1159 if (!GLX_Load(&GLX_drv->Base)) {
1161 free(GLX_drv);
1165 _eglInitDriverFallbacks(&GLX_drv->Base);
1166 GLX_drv->Base.API.Initialize = GLX_eglInitialize;
1167 GLX_drv->Base.API.Terminate = GLX_eglTerminate;
1168 GLX_drv->Base.API.CreateContext = GLX_eglCreateContext;
1169 GLX_drv->Base.API.DestroyContext = GLX_eglDestroyContext;
1170 GLX_drv->Base.API.MakeCurrent = GLX_eglMakeCurrent;
1171 GLX_drv->Base.API.CreateWindowSurface = GLX_eglCreateWindowSurface;
1172 GLX_drv->Base.API.CreatePixmapSurface = GLX_eglCreatePixmapSurface;
1173 GLX_drv->Base.API.CreatePbufferSurface = GLX_eglCreatePbufferSurface;
1174 GLX_drv->Base.API.DestroySurface = GLX_eglDestroySurface;
1175 GLX_drv->Base.API.SwapBuffers = GLX_eglSwapBuffers;
1176 GLX_drv->Base.API.GetProcAddress = GLX_eglGetProcAddress;
1177 GLX_drv->Base.API.WaitClient = GLX_eglWaitClient;
1178 GLX_drv->Base.API.WaitNative = GLX_eglWaitNative;
1180 GLX_drv->Base.Name = "GLX";
1181 GLX_drv->Base.Unload = GLX_Unload;
1183 return &GLX_drv->Base;