Lines Matching +full:bare +full:- +full:events
18 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
41 #include <X11/Xlib-xcb.h>
84 req->reqType = opcode; in ChangeDrawableAttribute()
85 req->glxCode = X_GLXChangeDrawableAttributes; in ChangeDrawableAttribute()
86 req->drawable = drawable; in ChangeDrawableAttribute()
87 req->numAttribs = (CARD32) num_attribs; in ChangeDrawableAttribute()
103 /* Keep a local copy for masking out DRI2 proto events as needed */ in ChangeDrawableAttribute()
104 pdraw->eventMask = attribs[i * 2 + 1]; in ChangeDrawableAttribute()
166 psc = priv->screens[config->screen]; in CreateDRIDrawable()
167 if (psc->driScreen == NULL) in CreateDRIDrawable()
170 pdraw = psc->driScreen->createDrawable(psc, drawable, glxdrawable, in CreateDRIDrawable()
177 if (__glxHashInsert(priv->drawHash, glxdrawable, pdraw)) { in CreateDRIDrawable()
178 pdraw->destroyDrawable(pdraw); in CreateDRIDrawable()
182 pdraw->textureTarget = determineTextureTarget(attrib_list, num_attribs); in CreateDRIDrawable()
183 pdraw->textureFormat = determineTextureFormat(attrib_list, num_attribs); in CreateDRIDrawable()
185 pdraw->refcount = 1; in CreateDRIDrawable()
199 pdraw->destroyDrawable(pdraw); in DestroyDRIDrawable()
200 __glxHashDelete(priv->drawHash, drawable); in DestroyDRIDrawable()
270 if (pdraw == NULL || gc == &dummyContext || gc->currentDpy != dpy || in __glXGetDrawableAttribute()
271 (gc->currentDrawable != drawable && in __glXGetDrawableAttribute()
272 gc->currentReadable != drawable)) { in __glXGetDrawableAttribute()
279 psc = pdraw->psc; in __glXGetDrawableAttribute()
281 if (psc->driScreen->getBufferAge != NULL) in __glXGetDrawableAttribute()
282 *value = psc->driScreen->getBufferAge(pdraw); in __glXGetDrawableAttribute()
289 *value = pdraw->psc->driScreen->getSwapInterval(pdraw); in __glXGetDrawableAttribute()
292 *value = pdraw->psc->driScreen->maxSwapInterval; in __glXGetDrawableAttribute()
295 *value = __glXExtensionBitIsEnabled(pdraw->psc, in __glXGetDrawableAttribute()
306 req->reqType = opcode; in __glXGetDrawableAttribute()
307 req->glxCode = X_GLXGetDrawableAttributes; in __glXGetDrawableAttribute()
308 req->drawable = drawable; in __glXGetDrawableAttribute()
342 if (!pdraw->textureTarget) in __glXGetDrawableAttribute()
343 pdraw->textureTarget = in __glXGetDrawableAttribute()
345 if (!pdraw->textureFormat) in __glXGetDrawableAttribute()
346 pdraw->textureFormat = in __glXGetDrawableAttribute()
361 * a bare Window, so try differently by first figure out its visual, then GLX in __glXGetDrawableAttribute()
374 struct glx_config *conf = glx_config_find_visual(pdraw->psc->configs, attr->visual); in __glXGetDrawableAttribute()
378 *value = conf->fbconfigID; in __glXGetDrawableAttribute()
406 req->reqType = opcode; in protocolDestroyDrawable()
407 req->glxCode = glxCode; in protocolDestroyDrawable()
408 req->pbuffer = (GLXPbuffer) drawable; in protocolDestroyDrawable()
418 if (priv->screens[0] && in protocolDestroyDrawable()
419 priv->screens[0]->allow_invalid_glx_destroy_window) { in protocolDestroyDrawable()
420 void *old = XESetError(priv->dpy, priv->codes.extension, in protocolDestroyDrawable()
423 XESetError(priv->dpy, priv->codes.extension, old); in protocolDestroyDrawable()
428 * Create a non-pbuffer GLX drawable.
462 req->reqType = opcode; in CreateDrawable()
463 req->screen = config->screen; in CreateDrawable()
464 req->fbconfig = config->fbconfigID; in CreateDrawable()
465 req->window = drawable; in CreateDrawable()
466 req->glxwindow = xid = XAllocID(dpy); in CreateDrawable()
467 req->numAttribs = i; in CreateDrawable()
470 req->glxCode = X_GLXCreateWindow; in CreateDrawable()
472 req->glxCode = X_GLXCreatePixmap; in CreateDrawable()
500 * Destroy a non-pbuffer GLX drawable.
552 req->reqType = opcode; in CreatePbuffer()
553 req->glxCode = X_GLXCreatePbuffer; in CreatePbuffer()
554 req->screen = config->screen; in CreatePbuffer()
555 req->fbconfig = config->fbconfigID; in CreatePbuffer()
556 req->pbuffer = id; in CreatePbuffer()
557 req->numAttribs = i + extra; in CreatePbuffer()
605 req->reqType = opcode; in DestroyPbuffer()
606 req->glxCode = X_GLXDestroyPbuffer; in DestroyPbuffer()
607 req->pbuffer = (GLXPbuffer) drawable; in DestroyPbuffer()
743 * If we use a round-trip call to validate the drawable, there could in glXQueryDrawable()
794 * events for a window, so do nothing. in glXSelectEvent()
827 * events for a window, so do nothing, but set the mask to 0. in glXGetSelectedEvent()
842 /* The non-sense with value is required because on LP64 platforms in glXGetSelectedEvent()
843 * sizeof(unsigned int) != sizeof(unsigned long). On little-endian in glXGetSelectedEvent()
844 * we could just type-cast the pointer, but why? in glXGetSelectedEvent()
860 if (apple_glx_pixmap_create(dpy, modes->screen, pixmap, modes)) in glXCreatePixmap()
890 if (visinfo->visualid != XVisualIDFromVisual(xwattr.visual)) { in glXCreateWindow()
945 int screen = vis->screen; in glXCreateGLXPixmap()
949 config = glx_config_find_visual(psc->visuals, vis->visualid); in glXCreateGLXPixmap()
951 if(apple_glx_pixmap_create(dpy, vis->screen, pixmap, config)) in glXCreateGLXPixmap()
980 req->reqType = opcode; in glXCreateGLXPixmap()
981 req->glxCode = X_GLXCreateGLXPixmap; in glXCreateGLXPixmap()
982 req->screen = vis->screen; in glXCreateGLXPixmap()
983 req->visual = vis->visualid; in glXCreateGLXPixmap()
984 req->pixmap = pixmap; in glXCreateGLXPixmap()
985 req->glxpixmap = xid = XAllocID(dpy); in glXCreateGLXPixmap()
989 if (InitGLXDrawable(dpy, glxDraw, pixmap, req->glxpixmap)) { in glXCreateGLXPixmap()
999 struct glx_screen *psc = GetGLXScreenConfigs(dpy, vis->screen); in glXCreateGLXPixmap()
1000 struct glx_config *config = glx_config_find_visual(psc->visuals, in glXCreateGLXPixmap()
1001 vis->visualid); in glXCreateGLXPixmap()