/external/mesa3d/src/glx/ |
D | dri2_glx.c | 134 struct dri2_drawable *pdraw, *pread; in dri2_bind_context() local 139 pdraw = (struct dri2_drawable *) driFetchDrawable(context, draw); in dri2_bind_context() 144 if (pdraw) in dri2_bind_context() 145 dri_draw = pdraw->driDrawable; in dri2_bind_context() 161 if (!pdp->invalidateAvailable && pdraw) { in dri2_bind_context() 162 dri2InvalidateBuffers(psc->base.dpy, pdraw->base.xDrawable); in dri2_bind_context() 163 if (pread != pdraw && pread) in dri2_bind_context() 338 struct dri2_drawable *pdraw = (struct dri2_drawable *) base; in dri2DestroyDrawable() local 342 __glxHashDelete(pdp->dri2Hash, pdraw->base.xDrawable); in dri2DestroyDrawable() 343 (*psc->core->destroyDrawable) (pdraw->driDrawable); in dri2DestroyDrawable() [all …]
|
D | dri3_glx.c | 217 struct dri3_drawable *pdraw, *pread; in dri3_bind_context() local 220 pdraw = (struct dri3_drawable *) driFetchDrawable(context, draw); in dri3_bind_context() 225 if (pdraw) in dri3_bind_context() 226 dri_draw = pdraw->loader_drawable.dri_drawable; in dri3_bind_context() 359 struct dri3_drawable *pdraw = (struct dri3_drawable *) base; in dri3_destroy_drawable() local 361 loader_dri3_drawable_fini(&pdraw->loader_drawable); in dri3_destroy_drawable() 363 free(pdraw); in dri3_destroy_drawable() 370 struct dri3_drawable *pdraw; in dri3_create_drawable() local 374 pdraw = calloc(1, sizeof(*pdraw)); in dri3_create_drawable() 375 if (!pdraw) in dri3_create_drawable() [all …]
|
D | dri_common.c | 392 __GLXDRIdrawable *pdraw; in driFetchDrawable() local 405 if (__glxHashLookup(priv->drawHash, glxDrawable, (void *) &pdraw) == 0) { in driFetchDrawable() 406 pdraw->refcount ++; in driFetchDrawable() 407 return pdraw; in driFetchDrawable() 410 pdraw = psc->driScreen->createDrawable(psc, glxDrawable, in driFetchDrawable() 413 if (pdraw == NULL) { in driFetchDrawable() 418 if (__glxHashInsert(priv->drawHash, glxDrawable, pdraw)) { in driFetchDrawable() 419 (*pdraw->destroyDrawable) (pdraw); in driFetchDrawable() 422 pdraw->refcount = 1; in driFetchDrawable() 424 return pdraw; in driFetchDrawable() [all …]
|
D | glx_pbuffer.c | 88 __GLXDRIdrawable *pdraw; in ChangeDrawableAttribute() local 136 pdraw = GetGLXDRIDrawable(dpy, drawable); in ChangeDrawableAttribute() 138 if (!pdraw) in ChangeDrawableAttribute() 145 pdraw->eventMask = attribs[i * 2 + 1]; in ChangeDrawableAttribute() 197 __GLXDRIdrawable *pdraw; in CreateDRIDrawable() local 209 pdraw = psc->driScreen->createDrawable(psc, drawable, in CreateDRIDrawable() 211 if (pdraw == NULL) { in CreateDRIDrawable() 216 if (__glxHashInsert(priv->drawHash, glxdrawable, pdraw)) { in CreateDRIDrawable() 217 (*pdraw->destroyDrawable) (pdraw); in CreateDRIDrawable() 221 pdraw->textureTarget = determineTextureTarget(attrib_list, num_attribs); in CreateDRIDrawable() [all …]
|
D | drisw_glx.c | 99 __GLXDRIdrawable *pdraw = &(pdp->base); in swrastGetDrawableInfo() local 100 Display *dpy = pdraw->psc->dpy; in swrastGetDrawableInfo() 106 drawable = pdraw->xDrawable; in swrastGetDrawableInfo() 141 __GLXDRIdrawable *pdraw = &(pdp->base); in swrastPutImage2() local 142 Display *dpy = pdraw->psc->dpy; in swrastPutImage2() 158 drawable = pdraw->xDrawable; in swrastPutImage2() 252 struct drisw_drawable *pdraw, *pread; in drisw_bind_context() local 254 pdraw = (struct drisw_drawable *) driFetchDrawable(context, draw); in drisw_bind_context() 259 if (pdraw == NULL || pread == NULL) in drisw_bind_context() 263 pdraw->driDrawable, pread->driDrawable)) in drisw_bind_context() [all …]
|
D | driwindows_glx.c | 85 struct driwindows_drawable *pdraw, *pread; in driwindows_bind_context() local 87 pdraw = (struct driwindows_drawable *) driFetchDrawable(context, draw); in driwindows_bind_context() 92 if (pdraw == NULL || pread == NULL) in driwindows_bind_context() 96 pdraw->windowsDrawable, pread->windowsDrawable)) in driwindows_bind_context() 118 struct driwindows_drawable *pdraw = (struct driwindows_drawable *) base; in driwindows_bind_tex_image() local 122 if (pdraw != NULL) { in driwindows_bind_tex_image() 124 pdraw->base.textureTarget, in driwindows_bind_tex_image() 125 pdraw->base.textureFormat, in driwindows_bind_tex_image() 126 pdraw->windowsDrawable); in driwindows_bind_tex_image() 137 struct driwindows_drawable *pdraw = (struct driwindows_drawable *) base; in driwindows_release_tex_image() local [all …]
|
D | glxcmds.c | 77 __GLXDRIdrawable *pdraw; in GetGLXDRIDrawable() local 82 if (__glxHashLookup(priv->drawHash, drawable, (void *) &pdraw) == 0) in GetGLXDRIDrawable() 83 return pdraw; in GetGLXDRIDrawable() 736 __GLXDRIdrawable *pdraw; in glXCreateGLXPixmap() 745 pdraw = psc->driScreen->createDrawable(psc, pixmap, xid, config); in glXCreateGLXPixmap() 746 if (pdraw == NULL) { in glXCreateGLXPixmap() 752 if (__glxHashInsert(priv->drawHash, xid, pdraw)) { in glXCreateGLXPixmap() 753 (*pdraw->destroyDrawable) (pdraw); in glXCreateGLXPixmap() 807 __GLXDRIdrawable *pdraw = GetGLXDRIDrawable(dpy, glxpixmap); in glXDestroyGLXPixmap() 809 if (priv != NULL && pdraw != NULL) { in glXDestroyGLXPixmap() [all …]
|
D | dri_glx.c | 545 struct dri_drawable *pdraw, *pread; in dri_bind_context() local 547 pdraw = (struct dri_drawable *) driFetchDrawable(context, draw); in dri_bind_context() 552 if (pdraw == NULL || pread == NULL) in dri_bind_context() 556 pdraw->driDrawable, pread->driDrawable)) in dri_bind_context() 647 driDestroyDrawable(__GLXDRIdrawable * pdraw) in driDestroyDrawable() argument 649 struct dri_screen *psc = (struct dri_screen *) pdraw->psc; in driDestroyDrawable() 650 struct dri_drawable *pdp = (struct dri_drawable *) pdraw; in driDestroyDrawable() 653 XF86DRIDestroyDrawable(psc->base.dpy, psc->base.scr, pdraw->drawable); in driDestroyDrawable() 654 free(pdraw); in driDestroyDrawable() 705 driSwapBuffers(__GLXDRIdrawable * pdraw, int64_t unused1, int64_t unused2, in driSwapBuffers() argument [all …]
|
D | glxclient.h | 121 int64_t (*swapBuffers)(__GLXDRIdrawable *pdraw, int64_t target_msc, 123 void (*copySubBuffer)(__GLXDRIdrawable *pdraw, 125 int (*getDrawableMSC)(struct glx_screen *psc, __GLXDRIdrawable *pdraw, 127 int (*waitForMSC)(__GLXDRIdrawable *pdraw, int64_t target_msc, 130 int (*waitForSBC)(__GLXDRIdrawable *pdraw, int64_t target_sbc, int64_t *ust, 132 int (*setSwapInterval)(__GLXDRIdrawable *pdraw, int interval); 133 int (*getSwapInterval)(__GLXDRIdrawable *pdraw); 134 int (*getBufferAge)(__GLXDRIdrawable *pdraw);
|
D | dri2.c | 102 __GLXDRIdrawable *pdraw; in DRI2WireToEvent() local 104 pdraw = dri2GetGlxDrawableFromXDrawableId(dpy, awire->drawable); in DRI2WireToEvent() 105 if (pdraw == NULL) in DRI2WireToEvent() 134 glxDraw = GetGLXDrawable(dpy, pdraw->drawable); in DRI2WireToEvent()
|
/external/mesa3d/src/mesa/drivers/dri/common/ |
D | dri_util.c | 646 __DRIdrawable *pdraw; in driCreateNewDrawable() local 650 pdraw = malloc(sizeof *pdraw); in driCreateNewDrawable() 651 if (!pdraw) in driCreateNewDrawable() 654 pdraw->loaderPrivate = data; in driCreateNewDrawable() 656 pdraw->driScreenPriv = screen; in driCreateNewDrawable() 657 pdraw->driContextPriv = NULL; in driCreateNewDrawable() 658 pdraw->refcount = 0; in driCreateNewDrawable() 659 pdraw->lastStamp = 0; in driCreateNewDrawable() 660 pdraw->w = 0; in driCreateNewDrawable() 661 pdraw->h = 0; in driCreateNewDrawable() [all …]
|
/external/mesa3d/include/GL/internal/ |
D | dri_interface.h | 774 __DRIdrawable *pdraw,
|