• Home
  • Raw
  • Download

Lines Matching refs:pdraw

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()
290 struct dri2_drawable *pdraw = (struct dri2_drawable *) base; in dri2DestroyDrawable() local
294 __glxHashDelete(pdp->dri2Hash, pdraw->base.xDrawable); in dri2DestroyDrawable()
295 (*psc->core->destroyDrawable) (pdraw->driDrawable); in dri2DestroyDrawable()
304 if (pdraw->base.xDrawable != pdraw->base.drawable) in dri2DestroyDrawable()
305 DRI2DestroyDrawable(psc->base.dpy, pdraw->base.xDrawable); in dri2DestroyDrawable()
307 free(pdraw); in dri2DestroyDrawable()
314 struct dri2_drawable *pdraw; in dri2CreateDrawable() local
325 pdraw = calloc(1, sizeof(*pdraw)); in dri2CreateDrawable()
326 if (!pdraw) in dri2CreateDrawable()
329 pdraw->base.destroyDrawable = dri2DestroyDrawable; in dri2CreateDrawable()
330 pdraw->base.xDrawable = xDrawable; in dri2CreateDrawable()
331 pdraw->base.drawable = drawable; in dri2CreateDrawable()
332 pdraw->base.psc = &psc->base; in dri2CreateDrawable()
333 pdraw->bufferCount = 0; in dri2CreateDrawable()
334 pdraw->swap_interval = 1; /* default may be overridden below */ in dri2CreateDrawable()
335 pdraw->have_back = 0; in dri2CreateDrawable()
344 pdraw->swap_interval = 0; in dri2CreateDrawable()
349 pdraw->swap_interval = 1; in dri2CreateDrawable()
356 pdraw->driDrawable = in dri2CreateDrawable()
358 config->driConfig, pdraw); in dri2CreateDrawable()
360 if (!pdraw->driDrawable) { in dri2CreateDrawable()
362 free(pdraw); in dri2CreateDrawable()
366 if (__glxHashInsert(pdp->dri2Hash, xDrawable, pdraw)) { in dri2CreateDrawable()
367 (*psc->core->destroyDrawable) (pdraw->driDrawable); in dri2CreateDrawable()
369 free(pdraw); in dri2CreateDrawable()
378 psc->vtable.setSwapInterval(&pdraw->base, pdraw->swap_interval); in dri2CreateDrawable()
380 return &pdraw->base; in dri2CreateDrawable()
384 dri2DrawableGetMSC(struct glx_screen *psc, __GLXDRIdrawable *pdraw, in dri2DrawableGetMSC() argument
387 xcb_connection_t *c = XGetXCBConnection(pdraw->psc->dpy); in dri2DrawableGetMSC()
391 get_msc_cookie = xcb_dri2_get_msc_unchecked(c, pdraw->xDrawable); in dri2DrawableGetMSC()
406 dri2WaitForMSC(__GLXDRIdrawable *pdraw, int64_t target_msc, int64_t divisor, in dri2WaitForMSC() argument
409 xcb_connection_t *c = XGetXCBConnection(pdraw->psc->dpy); in dri2WaitForMSC()
420 wait_msc_cookie = xcb_dri2_wait_msc_unchecked(c, pdraw->xDrawable, in dri2WaitForMSC()
438 dri2WaitForSBC(__GLXDRIdrawable *pdraw, int64_t target_sbc, int64_t *ust, in dri2WaitForSBC() argument
441 xcb_connection_t *c = XGetXCBConnection(pdraw->psc->dpy); in dri2WaitForSBC()
448 wait_sbc_cookie = xcb_dri2_wait_sbc_unchecked(c, pdraw->xDrawable, in dri2WaitForSBC()
518 __dri2CopySubBuffer(__GLXDRIdrawable *pdraw, int x, int y, in __dri2CopySubBuffer() argument
522 struct dri2_drawable *priv = (struct dri2_drawable *) pdraw; in __dri2CopySubBuffer()
523 struct dri2_screen *psc = (struct dri2_screen *) pdraw->psc; in __dri2CopySubBuffer()
544 DRI2CopyRegion(psc->base.dpy, pdraw->xDrawable, region, in __dri2CopySubBuffer()
551 DRI2CopyRegion(psc->base.dpy, pdraw->xDrawable, region, in __dri2CopySubBuffer()
558 dri2CopySubBuffer(__GLXDRIdrawable *pdraw, int x, int y, in dri2CopySubBuffer() argument
561 __dri2CopySubBuffer(pdraw, x, y, width, height, in dri2CopySubBuffer()
621 struct dri2_drawable *pdraw = loaderPrivate; in dri2FlushFrontBuffer() local
624 if (!pdraw) in dri2FlushFrontBuffer()
627 if (!pdraw->base.psc) in dri2FlushFrontBuffer()
630 psc = (struct dri2_screen *) pdraw->base.psc; in dri2FlushFrontBuffer()
640 dri2Throttle(psc, pdraw, __DRI2_THROTTLE_FLUSHFRONT); in dri2FlushFrontBuffer()
644 dri2InvalidateBuffers(priv->dpy, pdraw->base.xDrawable); in dri2FlushFrontBuffer()
670 process_buffers(struct dri2_drawable * pdraw, DRI2Buffer * buffers, in process_buffers() argument
675 pdraw->bufferCount = count; in process_buffers()
676 pdraw->have_fake_front = 0; in process_buffers()
677 pdraw->have_back = 0; in process_buffers()
682 pdraw->buffers[i].attachment = buffers[i].attachment; in process_buffers()
683 pdraw->buffers[i].name = buffers[i].name; in process_buffers()
684 pdraw->buffers[i].pitch = buffers[i].pitch; in process_buffers()
685 pdraw->buffers[i].cpp = buffers[i].cpp; in process_buffers()
686 pdraw->buffers[i].flags = buffers[i].flags; in process_buffers()
687 if (pdraw->buffers[i].attachment == __DRI_BUFFER_FAKE_FRONT_LEFT) in process_buffers()
688 pdraw->have_fake_front = 1; in process_buffers()
689 if (pdraw->buffers[i].attachment == __DRI_BUFFER_BACK_LEFT) in process_buffers()
690 pdraw->have_back = 1; in process_buffers()
698 __GLXDRIdrawable *pdraw; in dri2GetSwapEventType() local
699 pdraw = dri2GetGlxDrawableFromXDrawableId(dpy, drawable); in dri2GetSwapEventType()
700 if (!pdraw || !(pdraw->eventMask & GLX_BUFFER_SWAP_COMPLETE_INTEL_MASK)) in dri2GetSwapEventType()
730 __GLXDRIdrawable *pdraw, in dri2XcbSwapBuffers() argument
748 xcb_dri2_swap_buffers_unchecked(c, pdraw->xDrawable, in dri2XcbSwapBuffers()
775 dri2SwapBuffers(__GLXDRIdrawable *pdraw, int64_t target_msc, int64_t divisor, in dri2SwapBuffers() argument
778 struct dri2_drawable *priv = (struct dri2_drawable *) pdraw; in dri2SwapBuffers()
791 __dri2CopySubBuffer(pdraw, 0, 0, priv->width, priv->height, in dri2SwapBuffers()
800 ret = dri2XcbSwapBuffers(pdraw->psc->dpy, pdraw, in dri2SwapBuffers()
810 dri2InvalidateBuffers(dpyPriv->dpy, pdraw->xDrawable); in dri2SwapBuffers()
821 struct dri2_drawable *pdraw = loaderPrivate; in dri2GetBuffers() local
824 buffers = DRI2GetBuffers(pdraw->base.psc->dpy, pdraw->base.xDrawable, in dri2GetBuffers()
829 pdraw->width = *width; in dri2GetBuffers()
830 pdraw->height = *height; in dri2GetBuffers()
831 process_buffers(pdraw, buffers, *out_count); in dri2GetBuffers()
835 return pdraw->buffers; in dri2GetBuffers()
844 struct dri2_drawable *pdraw = loaderPrivate; in dri2GetBuffersWithFormat() local
847 buffers = DRI2GetBuffersWithFormat(pdraw->base.psc->dpy, in dri2GetBuffersWithFormat()
848 pdraw->base.xDrawable, in dri2GetBuffersWithFormat()
854 pdraw->width = *width; in dri2GetBuffersWithFormat()
855 pdraw->height = *height; in dri2GetBuffersWithFormat()
856 process_buffers(pdraw, buffers, *out_count); in dri2GetBuffersWithFormat()
860 return pdraw->buffers; in dri2GetBuffersWithFormat()
864 dri2SetSwapInterval(__GLXDRIdrawable *pdraw, int interval) in dri2SetSwapInterval() argument
866 xcb_connection_t *c = XGetXCBConnection(pdraw->psc->dpy); in dri2SetSwapInterval()
867 struct dri2_drawable *priv = (struct dri2_drawable *) pdraw; in dri2SetSwapInterval()
895 dri2GetSwapInterval(__GLXDRIdrawable *pdraw) in dri2GetSwapInterval() argument
897 struct dri2_drawable *priv = (struct dri2_drawable *) pdraw; in dri2GetSwapInterval()
951 __GLXDRIdrawable *pdraw = in dri2InvalidateBuffers() local
954 struct dri2_drawable *pdp = (struct dri2_drawable *) pdraw; in dri2InvalidateBuffers()
956 if (!pdraw) in dri2InvalidateBuffers()
959 psc = (struct dri2_screen *) pdraw->psc; in dri2InvalidateBuffers()
972 struct dri2_drawable *pdraw = (struct dri2_drawable *) base; in dri2_bind_tex_image() local
978 if (pdraw != NULL) { in dri2_bind_tex_image()
983 psc->f->invalidate(pdraw->driDrawable); in dri2_bind_tex_image()
988 pdraw->base.textureTarget, in dri2_bind_tex_image()
989 pdraw->base.textureFormat, in dri2_bind_tex_image()
990 pdraw->driDrawable); in dri2_bind_tex_image()
994 pdraw->base.textureTarget, in dri2_bind_tex_image()
995 pdraw->driDrawable); in dri2_bind_tex_image()
1005 struct dri2_drawable *pdraw = (struct dri2_drawable *) base; in dri2_release_tex_image() local
1008 if (pdraw != NULL) { in dri2_release_tex_image()
1014 pdraw->base.textureTarget, in dri2_release_tex_image()
1015 pdraw->driDrawable); in dri2_release_tex_image()
1337 __GLXDRIdrawable *pdraw; in dri2GetGlxDrawableFromXDrawableId() local
1339 if (__glxHashLookup(pdp->dri2Hash, id, (void *) &pdraw) == 0) in dri2GetGlxDrawableFromXDrawableId()
1340 return pdraw; in dri2GetGlxDrawableFromXDrawableId()