Lines Matching refs:dpyPriv
854 struct glx_display *dpyPriv, *d; in __glXInitialize() local
862 for (dpyPriv = glx_displays; dpyPriv; dpyPriv = dpyPriv->next) { in __glXInitialize()
863 if (dpyPriv->dpy == dpy) { in __glXInitialize()
865 return dpyPriv; in __glXInitialize()
872 dpyPriv = calloc(1, sizeof *dpyPriv); in __glXInitialize()
873 if (!dpyPriv) in __glXInitialize()
876 dpyPriv->codes = XInitExtension(dpy, __glXExtensionName); in __glXInitialize()
877 if (!dpyPriv->codes) { in __glXInitialize()
878 free(dpyPriv); in __glXInitialize()
882 dpyPriv->dpy = dpy; in __glXInitialize()
883 dpyPriv->majorOpcode = dpyPriv->codes->major_opcode; in __glXInitialize()
884 dpyPriv->serverGLXvendor = 0x0; in __glXInitialize()
885 dpyPriv->serverGLXversion = 0x0; in __glXInitialize()
890 if (!QueryVersion(dpy, dpyPriv->majorOpcode, in __glXInitialize()
891 &dpyPriv->majorVersion, &dpyPriv->minorVersion) in __glXInitialize()
892 || (dpyPriv->majorVersion == 1 && dpyPriv->minorVersion < 1)) { in __glXInitialize()
893 free(dpyPriv); in __glXInitialize()
898 XESetWireToEvent(dpy, dpyPriv->codes->first_event + i, __glXWireToEvent); in __glXInitialize()
899 XESetEventToWire(dpy, dpyPriv->codes->first_event + i, __glXEventToWire); in __glXInitialize()
902 XESetCloseDisplay(dpy, dpyPriv->codes->extension, __glXCloseDisplay); in __glXInitialize()
903 XESetErrorString (dpy, dpyPriv->codes->extension, __glXErrorString); in __glXInitialize()
905 dpyPriv->glXDrawHash = __glxHashCreate(); in __glXInitialize()
911 dpyPriv->drawHash = __glxHashCreate(); in __glXInitialize()
927 dpyPriv->dri3Display = dri3_create_display(dpy); in __glXInitialize()
929 dpyPriv->dri2Display = dri2CreateDisplay(dpy); in __glXInitialize()
930 dpyPriv->driDisplay = driCreateDisplay(dpy); in __glXInitialize()
934 dpyPriv->driswDisplay = driswCreateDisplay(dpy); in __glXInitialize()
938 if (!applegl_create_display(dpyPriv)) { in __glXInitialize()
939 free(dpyPriv); in __glXInitialize()
946 dpyPriv->windowsdriDisplay = driwindowsCreateDisplay(dpy); in __glXInitialize()
949 if (!AllocAndFetchScreenConfigs(dpy, dpyPriv)) { in __glXInitialize()
950 free(dpyPriv); in __glXInitialize()
954 __glX_send_client_info(dpyPriv); in __glXInitialize()
963 glx_display_free(dpyPriv); in __glXInitialize()
968 dpyPriv->next = glx_displays; in __glXInitialize()
969 glx_displays = dpyPriv; in __glXInitialize()
973 return dpyPriv; in __glXInitialize()