Home
last modified time | relevance | path

Searched refs:pdraw (Results 1 – 12 of 12) sorted by relevance

/external/mesa3d/src/glx/
Ddri2_glx.c134 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()
344 struct dri2_drawable *pdraw = (struct dri2_drawable *) base; in dri2DestroyDrawable() local
348 __glxHashDelete(pdp->dri2Hash, pdraw->base.xDrawable); in dri2DestroyDrawable()
349 (*psc->core->destroyDrawable) (pdraw->driDrawable); in dri2DestroyDrawable()
[all …]
Ddri3_glx.c192 struct dri3_drawable *pdraw, *pread; in dri3_bind_context() local
195 pdraw = (struct dri3_drawable *) driFetchDrawable(context, draw); in dri3_bind_context()
200 if (pdraw) in dri3_bind_context()
201 dri_draw = pdraw->loader_drawable.dri_drawable; in dri3_bind_context()
347 struct dri3_drawable *pdraw = (struct dri3_drawable *) base; in dri3_destroy_drawable() local
349 loader_dri3_drawable_fini(&pdraw->loader_drawable); in dri3_destroy_drawable()
351 free(pdraw); in dri3_destroy_drawable()
358 struct dri3_drawable *pdraw; in dri3_create_drawable() local
362 pdraw = calloc(1, sizeof(*pdraw)); in dri3_create_drawable()
363 if (!pdraw) in dri3_create_drawable()
[all …]
Ddri_common.c415 __GLXDRIdrawable *pdraw; in driFetchDrawable() local
429 if (__glxHashLookup(priv->drawHash, glxDrawable, (void *) &pdraw) == 0) { in driFetchDrawable()
430 pdraw->refcount ++; in driFetchDrawable()
431 return pdraw; in driFetchDrawable()
439 pdraw = psc->driScreen->createDrawable(psc, glxDrawable, glxDrawable, in driFetchDrawable()
442 if (pdraw == NULL) { in driFetchDrawable()
447 if (__glxHashInsert(priv->drawHash, glxDrawable, pdraw)) { in driFetchDrawable()
448 (*pdraw->destroyDrawable) (pdraw); in driFetchDrawable()
451 pdraw->refcount = 1; in driFetchDrawable()
453 return pdraw; in driFetchDrawable()
[all …]
Dglx_pbuffer.c88 __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 …]
Ddrisw_glx.c99 __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()
251 struct drisw_drawable *pdraw, *pread; in drisw_bind_context() local
253 pdraw = (struct drisw_drawable *) driFetchDrawable(context, draw); in drisw_bind_context()
259 pdraw ? pdraw->driDrawable : NULL, in drisw_bind_context()
283 struct drisw_drawable *pdraw = (struct drisw_drawable *) base; in drisw_bind_tex_image() local
[all …]
Ddriwindows_glx.c86 struct driwindows_drawable *pdraw, *pread; in driwindows_bind_context() local
88 pdraw = (struct driwindows_drawable *) driFetchDrawable(context, draw); in driwindows_bind_context()
93 if (pdraw == NULL || pread == NULL) in driwindows_bind_context()
97 pdraw->windowsDrawable, pread->windowsDrawable)) in driwindows_bind_context()
119 struct driwindows_drawable *pdraw = (struct driwindows_drawable *) base; in driwindows_bind_tex_image() local
123 if (pdraw != NULL) { in driwindows_bind_tex_image()
125 pdraw->base.textureTarget, in driwindows_bind_tex_image()
126 pdraw->base.textureFormat, in driwindows_bind_tex_image()
127 pdraw->windowsDrawable); in driwindows_bind_tex_image()
138 struct driwindows_drawable *pdraw = (struct driwindows_drawable *) base; in driwindows_release_tex_image() local
[all …]
Dglxcmds.c78 __GLXDRIdrawable *pdraw; in GetGLXDRIDrawable() local
83 if (__glxHashLookup(priv->drawHash, drawable, (void *) &pdraw) == 0) in GetGLXDRIDrawable()
84 return pdraw; in GetGLXDRIDrawable()
733 __GLXDRIdrawable *pdraw; in glXCreateGLXPixmap()
742 pdraw = psc->driScreen->createDrawable(psc, pixmap, xid, config); in glXCreateGLXPixmap()
743 if (pdraw == NULL) { in glXCreateGLXPixmap()
749 if (__glxHashInsert(priv->drawHash, xid, pdraw)) { in glXCreateGLXPixmap()
750 (*pdraw->destroyDrawable) (pdraw); in glXCreateGLXPixmap()
804 __GLXDRIdrawable *pdraw = GetGLXDRIDrawable(dpy, glxpixmap); in glXDestroyGLXPixmap()
806 if (priv != NULL && pdraw != NULL) { in glXDestroyGLXPixmap()
[all …]
Ddri_glx.c626 struct dri_drawable *pdraw, *pread; in dri_bind_context() local
628 pdraw = (struct dri_drawable *) driFetchDrawable(context, draw); in dri_bind_context()
633 if (pdraw == NULL || pread == NULL) in dri_bind_context()
637 pdraw->driDrawable, pread->driDrawable)) in dri_bind_context()
728 driDestroyDrawable(__GLXDRIdrawable * pdraw) in driDestroyDrawable() argument
730 struct dri_screen *psc = (struct dri_screen *) pdraw->psc; in driDestroyDrawable()
731 struct dri_drawable *pdp = (struct dri_drawable *) pdraw; in driDestroyDrawable()
734 XF86DRIDestroyDrawable(psc->base.dpy, psc->base.scr, pdraw->drawable); in driDestroyDrawable()
735 free(pdraw); in driDestroyDrawable()
786 driSwapBuffers(__GLXDRIdrawable * pdraw, int64_t unused1, int64_t unused2, in driSwapBuffers() argument
[all …]
Dglxclient.h121 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);
Ddri2.c101 __GLXDRIdrawable *pdraw; in DRI2WireToEvent() local
103 pdraw = dri2GetGlxDrawableFromXDrawableId(dpy, awire->drawable); in DRI2WireToEvent()
104 if (pdraw == NULL) in DRI2WireToEvent()
133 glxDraw = GetGLXDrawable(dpy, pdraw->drawable); in DRI2WireToEvent()
/external/mesa3d/src/mesa/drivers/dri/common/
Ddri_util.c676 __DRIdrawable *pdraw; in driCreateNewDrawable() local
680 pdraw = malloc(sizeof *pdraw); in driCreateNewDrawable()
681 if (!pdraw) in driCreateNewDrawable()
684 pdraw->loaderPrivate = data; in driCreateNewDrawable()
686 pdraw->driScreenPriv = screen; in driCreateNewDrawable()
687 pdraw->driContextPriv = NULL; in driCreateNewDrawable()
688 pdraw->refcount = 0; in driCreateNewDrawable()
689 pdraw->lastStamp = 0; in driCreateNewDrawable()
690 pdraw->w = 0; in driCreateNewDrawable()
691 pdraw->h = 0; in driCreateNewDrawable()
[all …]
/external/mesa3d/include/GL/internal/
Ddri_interface.h792 __DRIdrawable *pdraw,