• Home
  • Raw
  • Download

Lines Matching refs:dpy

60 warn_GLX_1_3(Display * dpy, const char *function_name)  in warn_GLX_1_3()  argument
62 struct glx_display *priv = __glXInitialize(dpy); in warn_GLX_1_3()
84 ChangeDrawableAttribute(Display * dpy, GLXDrawable drawable, in ChangeDrawableAttribute() argument
87 struct glx_display *priv = __glXInitialize(dpy); in ChangeDrawableAttribute()
95 if ((priv == NULL) || (dpy == NULL) || (drawable == 0)) { in ChangeDrawableAttribute()
99 opcode = __glXSetupForCommand(dpy); in ChangeDrawableAttribute()
103 LockDisplay(dpy); in ChangeDrawableAttribute()
133 UnlockDisplay(dpy); in ChangeDrawableAttribute()
137 pdraw = GetGLXDRIDrawable(dpy, drawable); in ChangeDrawableAttribute()
193 CreateDRIDrawable(Display *dpy, struct glx_config *config, in CreateDRIDrawable() argument
197 struct glx_display *const priv = __glXInitialize(dpy); in CreateDRIDrawable()
229 DestroyDRIDrawable(Display *dpy, GLXDrawable drawable, int destroy_xdrawable) in DestroyDRIDrawable() argument
231 struct glx_display *const priv = __glXInitialize(dpy); in DestroyDRIDrawable()
232 __GLXDRIdrawable *pdraw = GetGLXDRIDrawable(dpy, drawable); in DestroyDRIDrawable()
240 XFreePixmap(priv->dpy, xid); in DestroyDRIDrawable()
247 CreateDRIDrawable(Display *dpy, const struct glx_config * fbconfig, in CreateDRIDrawable() argument
255 DestroyDRIDrawable(Display *dpy, GLXDrawable drawable, int destroy_xdrawable) in DestroyDRIDrawable() argument
277 __glXGetDrawableAttribute(Display * dpy, GLXDrawable drawable, in __glXGetDrawableAttribute() argument
293 if (dpy == NULL) in __glXGetDrawableAttribute()
302 __glXSendError(dpy, GLXBadDrawable, 0, X_GLXGetDrawableAttributes, false); in __glXGetDrawableAttribute()
306 priv = __glXInitialize(dpy); in __glXGetDrawableAttribute()
315 opcode = __glXSetupForCommand(dpy); in __glXGetDrawableAttribute()
320 pdraw = GetGLXDRIDrawable(dpy, drawable); in __glXGetDrawableAttribute()
332 if (pdraw == NULL || gc == &dummyContext || gc->currentDpy != dpy || in __glXGetDrawableAttribute()
335 __glXSendError(dpy, GLXBadDrawable, drawable, in __glXGetDrawableAttribute()
363 LockDisplay(dpy); in __glXGetDrawableAttribute()
385 _XReply(dpy, (xReply *) & reply, 0, False); in __glXGetDrawableAttribute()
388 UnlockDisplay(dpy); in __glXGetDrawableAttribute()
399 _XEatData(dpy, length); in __glXGetDrawableAttribute()
402 _XRead(dpy, (char *) data, length * sizeof(CARD32)); in __glXGetDrawableAttribute()
429 UnlockDisplay(dpy); in __glXGetDrawableAttribute()
436 protocolDestroyDrawable(Display *dpy, GLXDrawable drawable, CARD32 glxCode) in protocolDestroyDrawable() argument
441 opcode = __glXSetupForCommand(dpy); in protocolDestroyDrawable()
445 LockDisplay(dpy); in protocolDestroyDrawable()
452 UnlockDisplay(dpy); in protocolDestroyDrawable()
460 CreateDrawable(Display *dpy, struct glx_config *config, in CreateDrawable() argument
476 opcode = __glXSetupForCommand(dpy); in CreateDrawable()
484 LockDisplay(dpy); in CreateDrawable()
493 req->glxwindow = xid = XAllocID(dpy); in CreateDrawable()
499 UnlockDisplay(dpy); in CreateDrawable()
502 if (InitGLXDrawable(dpy, glxDraw, drawable, xid)) { in CreateDrawable()
507 if (!CreateDRIDrawable(dpy, config, drawable, xid, attrib_list, i)) { in CreateDrawable()
512 protocolDestroyDrawable(dpy, xid, glxCode); in CreateDrawable()
524 DestroyDrawable(Display * dpy, GLXDrawable drawable, CARD32 glxCode) in DestroyDrawable() argument
526 if ((dpy == NULL) || (drawable == 0)) { in DestroyDrawable()
530 protocolDestroyDrawable(dpy, drawable, glxCode); in DestroyDrawable()
532 DestroyGLXDrawable(dpy, drawable); in DestroyDrawable()
533 DestroyDRIDrawable(dpy, drawable, GL_FALSE); in DestroyDrawable()
550 CreatePbuffer(Display * dpy, struct glx_config *config, in CreatePbuffer() argument
554 struct glx_display *priv = __glXInitialize(dpy); in CreatePbuffer()
572 opcode = __glXSetupForCommand(dpy); in CreatePbuffer()
576 LockDisplay(dpy); in CreatePbuffer()
577 id = XAllocID(dpy); in CreatePbuffer()
623 UnlockDisplay(dpy); in CreatePbuffer()
629 pixmap = XCreatePixmap(dpy, RootWindow(dpy, config->screen), in CreatePbuffer()
632 if (!CreateDRIDrawable(dpy, config, pixmap, id, attrib_list, i)) { in CreatePbuffer()
634 XFreePixmap(dpy, pixmap); in CreatePbuffer()
635 protocolDestroyDrawable(dpy, id, o); in CreatePbuffer()
653 DestroyPbuffer(Display * dpy, GLXDrawable drawable) in DestroyPbuffer() argument
655 struct glx_display *priv = __glXInitialize(dpy); in DestroyPbuffer()
658 if ((priv == NULL) || (dpy == NULL) || (drawable == 0)) { in DestroyPbuffer()
662 opcode = __glXSetupForCommand(dpy); in DestroyPbuffer()
666 LockDisplay(dpy); in DestroyPbuffer()
690 UnlockDisplay(dpy); in DestroyPbuffer()
693 DestroyDRIDrawable(dpy, drawable, GL_TRUE); in DestroyPbuffer()
702 glXCreateGLXPbufferSGIX(Display * dpy, GLXFBConfigSGIX config, in glXCreateGLXPbufferSGIX() argument
706 return (GLXPbufferSGIX) CreatePbuffer(dpy, (struct glx_config *) config, in glXCreateGLXPbufferSGIX()
717 glXCreatePbuffer(Display * dpy, GLXFBConfig config, const int *attrib_list) in glXCreatePbuffer() argument
728 WARN_ONCE_GLX_1_3(dpy, __func__); in glXCreatePbuffer()
758 if (apple_glx_pbuffer_create(dpy, config, width, height, &errorcode, in glXCreatePbuffer()
764 __glXSendError(dpy, errorcode, 0, X_GLXCreatePbuffer, true); in glXCreatePbuffer()
782 return (GLXPbuffer) CreatePbuffer(dpy, (struct glx_config *) config, in glXCreatePbuffer()
792 glXDestroyPbuffer(Display * dpy, GLXPbuffer pbuf) in glXDestroyPbuffer() argument
795 if (apple_glx_pbuffer_destroy(dpy, pbuf)) { in glXDestroyPbuffer()
796 __glXSendError(dpy, GLXBadPbuffer, pbuf, X_GLXDestroyPbuffer, false); in glXDestroyPbuffer()
799 DestroyPbuffer(dpy, pbuf); in glXDestroyPbuffer()
808 glXQueryDrawable(Display * dpy, GLXDrawable drawable, in glXQueryDrawable() argument
811 WARN_ONCE_GLX_1_3(dpy, __func__); in glXQueryDrawable()
835 (dpy, drawable, &root, &x, &y, &width, &height, &bd, &depth)) { in glXQueryDrawable()
847 __glXGetDrawableAttribute(dpy, drawable, attribute, value); in glXQueryDrawable()
857 glXQueryGLXPbufferSGIX(Display * dpy, GLXPbufferSGIX drawable, in glXQueryGLXPbufferSGIX() argument
860 __glXGetDrawableAttribute(dpy, drawable, attribute, value); in glXQueryGLXPbufferSGIX()
868 glXSelectEvent(Display * dpy, GLXDrawable drawable, unsigned long mask) in glXSelectEvent() argument
880 if (XGetWindowAttributes(dpy, drawable, &xwattr)) in glXSelectEvent()
884 __glXSendError(dpy, GLXBadDrawable, drawable, in glXSelectEvent()
892 ChangeDrawableAttribute(dpy, drawable, attribs, 1); in glXSelectEvent()
901 glXGetSelectedEvent(Display * dpy, GLXDrawable drawable, unsigned long *mask) in glXGetSelectedEvent() argument
913 if (XGetWindowAttributes(dpy, drawable, &xwattr)) { in glXGetSelectedEvent()
920 __glXSendError(dpy, GLXBadDrawable, drawable, X_GLXGetDrawableAttributes, in glXGetSelectedEvent()
931 __glXGetDrawableAttribute(dpy, drawable, GLX_EVENT_MASK_SGIX, &value); in glXGetSelectedEvent()
938 glXCreatePixmap(Display * dpy, GLXFBConfig config, Pixmap pixmap, in glXCreatePixmap() argument
941 WARN_ONCE_GLX_1_3(dpy, __func__); in glXCreatePixmap()
946 if (apple_glx_pixmap_create(dpy, modes->screen, pixmap, modes)) in glXCreatePixmap()
951 return CreateDrawable(dpy, (struct glx_config *) config, in glXCreatePixmap()
958 glXCreateWindow(Display * dpy, GLXFBConfig config, Window win, in glXCreateWindow() argument
961 WARN_ONCE_GLX_1_3(dpy, __func__); in glXCreateWindow()
968 XGetWindowAttributes(dpy, win, &xwattr); in glXCreateWindow()
970 visinfo = glXGetVisualFromFBConfig(dpy, config); in glXCreateWindow()
973 __glXSendError(dpy, GLXBadFBConfig, 0, X_GLXCreateWindow, false); in glXCreateWindow()
978 __glXSendError(dpy, BadMatch, 0, X_GLXCreateWindow, true); in glXCreateWindow()
986 return CreateDrawable(dpy, (struct glx_config *) config, in glXCreateWindow()
993 glXDestroyPixmap(Display * dpy, GLXPixmap pixmap) in glXDestroyPixmap() argument
995 WARN_ONCE_GLX_1_3(dpy, __func__); in glXDestroyPixmap()
997 if (apple_glx_pixmap_destroy(dpy, pixmap)) in glXDestroyPixmap()
998 __glXSendError(dpy, GLXBadPixmap, pixmap, X_GLXDestroyPixmap, false); in glXDestroyPixmap()
1000 DestroyDrawable(dpy, (GLXDrawable) pixmap, X_GLXDestroyPixmap); in glXDestroyPixmap()
1006 glXDestroyWindow(Display * dpy, GLXWindow win) in glXDestroyWindow() argument
1008 WARN_ONCE_GLX_1_3(dpy, __func__); in glXDestroyWindow()
1010 DestroyDrawable(dpy, (GLXDrawable) win, X_GLXDestroyWindow); in glXDestroyWindow()
1016 (Display * dpy, GLXPbufferSGIX pbuf),
1017 (dpy, pbuf), glXDestroyPbuffer)
1021 (Display * dpy, GLXDrawable drawable,
1022 unsigned long mask), (dpy, drawable, mask), glXSelectEvent)
1026 (Display * dpy, GLXDrawable drawable,
1027 unsigned long *mask), (dpy, drawable, mask),