Home
last modified time | relevance | path

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

/third_party/mesa3d/src/glx/
Ddri2_glx.c120 struct dri2_drawable *pdraw, *pread; in dri2_bind_context() local
123 pdraw = (struct dri2_drawable *) driFetchDrawable(context, draw); in dri2_bind_context()
128 if (pdraw) in dri2_bind_context()
129 dri_draw = pdraw->driDrawable; in dri2_bind_context()
270 struct dri2_drawable *pdraw = (struct dri2_drawable *) base; in dri2DestroyDrawable() local
274 __glxHashDelete(pdp->dri2Hash, pdraw->base.xDrawable); in dri2DestroyDrawable()
275 (*psc->core->destroyDrawable) (pdraw->driDrawable); in dri2DestroyDrawable()
284 if (pdraw->base.xDrawable != pdraw->base.drawable) in dri2DestroyDrawable()
285 DRI2DestroyDrawable(psc->base.dpy, pdraw->base.xDrawable); in dri2DestroyDrawable()
287 free(pdraw); in dri2DestroyDrawable()
[all …]
Ddri3_glx.c193 struct dri3_drawable *pdraw, *pread; in dri3_bind_context() local
196 pdraw = (struct dri3_drawable *) driFetchDrawable(context, draw); in dri3_bind_context()
201 if (pdraw) in dri3_bind_context()
202 dri_draw = pdraw->loader_drawable.dri_drawable; in dri3_bind_context()
345 struct dri3_drawable *pdraw = (struct dri3_drawable *) base; in dri3_destroy_drawable() local
347 loader_dri3_drawable_fini(&pdraw->loader_drawable); in dri3_destroy_drawable()
349 free(pdraw); in dri3_destroy_drawable()
372 struct dri3_drawable *pdraw; in dri3_create_drawable() local
381 pdraw = calloc(1, sizeof(*pdraw)); in dri3_create_drawable()
382 if (!pdraw) in dri3_create_drawable()
[all …]
Dglx_pbuffer.c68 __GLXDRIdrawable *pdraw; in ChangeDrawableAttribute() local
116 pdraw = GetGLXDRIDrawable(dpy, drawable); in ChangeDrawableAttribute()
118 if (!pdraw) in ChangeDrawableAttribute()
125 pdraw->eventMask = attribs[i * 2 + 1]; in ChangeDrawableAttribute()
179 __GLXDRIdrawable *pdraw; in CreateDRIDrawable() local
191 pdraw = psc->driScreen->createDrawable(psc, drawable, glxdrawable, in CreateDRIDrawable()
193 if (pdraw == NULL) { in CreateDRIDrawable()
198 if (__glxHashInsert(priv->drawHash, glxdrawable, pdraw)) { in CreateDRIDrawable()
199 (*pdraw->destroyDrawable) (pdraw); in CreateDRIDrawable()
203 pdraw->textureTarget = determineTextureTarget(attrib_list, num_attribs); in CreateDRIDrawable()
[all …]
Ddri_common.c344 __GLXDRIdrawable *pdraw; in driFetchDrawable() local
359 if (__glxHashLookup(priv->drawHash, glxDrawable, (void *) &pdraw) == 0) { in driFetchDrawable()
361 _mesa_set_remove_key(priv->zombieGLXDrawable, pdraw); in driFetchDrawable()
363 pdraw->refcount ++; in driFetchDrawable()
364 return pdraw; in driFetchDrawable()
408 pdraw = psc->driScreen->createDrawable(psc, glxDrawable, glxDrawable, in driFetchDrawable()
411 if (pdraw == NULL) { in driFetchDrawable()
416 if (__glxHashInsert(priv->drawHash, glxDrawable, pdraw)) { in driFetchDrawable()
417 (*pdraw->destroyDrawable) (pdraw); in driFetchDrawable()
427 pdraw->refcount = 2; in driFetchDrawable()
[all …]
Dglxcmds.c77 __GLXDRIdrawable *pdraw; in GetGLXDRIDrawable() local
82 if (__glxHashLookup(priv->drawHash, drawable, (void *) &pdraw) == 0) in GetGLXDRIDrawable()
83 return pdraw; in GetGLXDRIDrawable()
750 __GLXDRIdrawable *pdraw; in glXCreateGLXPixmap()
759 pdraw = psc->driScreen->createDrawable(psc, pixmap, xid, GLX_PIXMAP_BIT, config); in glXCreateGLXPixmap()
760 if (pdraw == NULL) { in glXCreateGLXPixmap()
766 if (__glxHashInsert(priv->drawHash, xid, pdraw)) { in glXCreateGLXPixmap()
767 (*pdraw->destroyDrawable) (pdraw); in glXCreateGLXPixmap()
821 __GLXDRIdrawable *pdraw = GetGLXDRIDrawable(dpy, glxpixmap); in glXDestroyGLXPixmap()
823 if (priv != NULL && pdraw != NULL) { in glXDestroyGLXPixmap()
[all …]
Ddrisw_glx.c143 __GLXDRIdrawable *pdraw = &(pdp->base); in swrastGetDrawableInfo() local
144 Display *dpy = pdraw->psc->dpy; in swrastGetDrawableInfo()
150 drawable = pdraw->xDrawable; in swrastGetDrawableInfo()
186 __GLXDRIdrawable *pdraw = &(pdp->base); in swrastXPutImage() local
187 Display *dpy = pdraw->psc->dpy; in swrastXPutImage()
197 drawable = pdraw->xDrawable; in swrastXPutImage()
436 struct drisw_drawable *pdraw, *pread; in drisw_bind_context() local
438 pdraw = (struct drisw_drawable *) driFetchDrawable(context, draw); in drisw_bind_context()
444 pdraw ? pdraw->driDrawable : NULL, in drisw_bind_context()
448 if (pdraw) in drisw_bind_context()
[all …]
Dglxclient.h124 int64_t (*swapBuffers)(__GLXDRIdrawable *pdraw, int64_t target_msc,
126 void (*copySubBuffer)(__GLXDRIdrawable *pdraw,
128 int (*getDrawableMSC)(struct glx_screen *psc, __GLXDRIdrawable *pdraw,
130 int (*waitForMSC)(__GLXDRIdrawable *pdraw, int64_t target_msc,
133 int (*waitForSBC)(__GLXDRIdrawable *pdraw, int64_t target_sbc, int64_t *ust,
135 int (*setSwapInterval)(__GLXDRIdrawable *pdraw, int interval);
136 int (*getSwapInterval)(__GLXDRIdrawable *pdraw);
137 int (*getBufferAge)(__GLXDRIdrawable *pdraw);
138 void (*bindTexImage)(__GLXDRIdrawable *pdraw, int buffer, const int *attribs);
139 void (*releaseTexImage)(__GLXDRIdrawable *pdraw, int buffer);
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()
250 driwindowsDestroyDrawable(__GLXDRIdrawable * pdraw) in driwindowsDestroyDrawable() argument
252 struct driwindows_drawable *pdp = (struct driwindows_drawable *) pdraw; in driwindowsDestroyDrawable()
312 driwindowsSwapBuffers(__GLXDRIdrawable * pdraw, in driwindowsSwapBuffers() argument
316 struct driwindows_drawable *pdp = (struct driwindows_drawable *) pdraw; in driwindowsSwapBuffers()
332 driwindowsCopySubBuffer(__GLXDRIdrawable * pdraw, in driwindowsCopySubBuffer() argument
335 struct driwindows_drawable *pdp = (struct driwindows_drawable *) pdraw; in driwindowsCopySubBuffer()
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()
Dglxext.c275 __GLXDRIdrawable *pdraw = (__GLXDRIdrawable *)entry->key; in free_zombie_glx_drawable() local
277 pdraw->destroyDrawable(pdraw); in free_zombie_glx_drawable()
/third_party/mesa3d/src/gallium/frontends/dri/
Ddri_util.c820 __DRIdrawable *pdraw; in driCreateNewDrawable() local
824 pdraw = malloc(sizeof *pdraw); in driCreateNewDrawable()
825 if (!pdraw) in driCreateNewDrawable()
828 pdraw->loaderPrivate = data; in driCreateNewDrawable()
830 pdraw->driScreenPriv = screen; in driCreateNewDrawable()
831 pdraw->driContextPriv = NULL; in driCreateNewDrawable()
832 pdraw->refcount = 0; in driCreateNewDrawable()
833 pdraw->lastStamp = 0; in driCreateNewDrawable()
834 pdraw->w = 0; in driCreateNewDrawable()
835 pdraw->h = 0; in driCreateNewDrawable()
[all …]
Dkopper.c943 __DRIdrawable *pdraw; in kopperCreateNewDrawable() local
947 pdraw = malloc(sizeof *pdraw); in kopperCreateNewDrawable()
948 if (!pdraw) in kopperCreateNewDrawable()
951 pdraw->loaderPrivate = data; in kopperCreateNewDrawable()
953 pdraw->driScreenPriv = screen; in kopperCreateNewDrawable()
954 pdraw->driContextPriv = NULL; in kopperCreateNewDrawable()
955 pdraw->refcount = 0; in kopperCreateNewDrawable()
956 pdraw->lastStamp = 0; in kopperCreateNewDrawable()
957 pdraw->w = 0; in kopperCreateNewDrawable()
958 pdraw->h = 0; in kopperCreateNewDrawable()
[all …]
/third_party/mesa3d/src/gallium/drivers/freedreno/a2xx/
Dfd2_draw.c158 const struct pipe_draw_start_count_bias *pdraw, in fd2_draw_vbo() argument
165 !u_trim_pipe_prim(pinfo->mode, (unsigned *)&pdraw->count)) in fd2_draw_vbo()
181 if (pdraw->count > 32766) { in fd2_draw_vbo()
194 struct pipe_draw_start_count_bias draw = *pdraw; in fd2_draw_vbo()
212 draw_impl(ctx, pinfo, pdraw, ctx->batch->draw, index_offset, false); in fd2_draw_vbo()
213 draw_impl(ctx, pinfo, pdraw, ctx->batch->binning, index_offset, true); in fd2_draw_vbo()
/third_party/mesa3d/include/GL/internal/
Ddri_interface.h808 __DRIdrawable *pdraw,
/third_party/mesa3d/docs/drivers/
Dvc4.rst261 …apitrace replay <application>.trace --pdraw=GL_AMD_performance_monitor:QPU-total-clk-cycles-vertex…