Home | History | Annotate | Download | only in glx

Lines Matching refs:dpyPriv

811    struct glx_display *dpyPriv, *d;
819 for (dpyPriv = glx_displays; dpyPriv; dpyPriv = dpyPriv->next) {
820 if (dpyPriv->dpy == dpy) {
822 return dpyPriv;
829 dpyPriv = Xcalloc(1, sizeof *dpyPriv);
830 if (!dpyPriv)
833 dpyPriv->codes = XInitExtension(dpy, __glXExtensionName);
834 if (!dpyPriv->codes) {
835 Xfree(dpyPriv);
840 dpyPriv->dpy = dpy;
841 dpyPriv->majorOpcode = dpyPriv->codes->major_opcode;
842 dpyPriv->serverGLXvendor = 0x0;
843 dpyPriv->serverGLXversion = 0x0;
848 if (!QueryVersion(dpy, dpyPriv->majorOpcode,
849 &dpyPriv->majorVersion, &dpyPriv->minorVersion)
850 || (dpyPriv->majorVersion == 1 && dpyPriv->minorVersion < 1)) {
851 Xfree(dpyPriv);
857 XESetWireToEvent(dpy, dpyPriv->codes->first_event + i, __glXWireToEvent);
858 XESetEventToWire(dpy, dpyPriv->codes->first_event + i, __glXEventToWire);
861 XESetCloseDisplay(dpy, dpyPriv->codes->extension, __glXCloseDisplay);
862 XESetErrorString (dpy, dpyPriv->codes->extension,__glXErrorString);
864 dpyPriv->glXDrawHash = __glxHashCreate();
870 dpyPriv->drawHash = __glxHashCreate();
878 dpyPriv->dri2Display = dri2CreateDisplay(dpy);
879 dpyPriv->driDisplay = driCreateDisplay(dpy);
882 dpyPriv->driswDisplay = driswCreateDisplay(dpy);
886 if (!applegl_create_display(dpyPriv)) {
887 Xfree(dpyPriv);
891 if (!AllocAndFetchScreenConfigs(dpy, dpyPriv)) {
892 Xfree(dpyPriv);
897 __glX_send_client_info(dpyPriv);
899 __glXClientInfo(dpy, dpyPriv->majorOpcode);
909 glx_display_free(dpyPriv);
914 dpyPriv->next = glx_displays;
915 glx_displays = dpyPriv;
919 return dpyPriv;