Lines Matching refs:pdraw

192    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()
366 pdraw->base.destroyDrawable = dri3_destroy_drawable; in dri3_create_drawable()
367 pdraw->base.xDrawable = xDrawable; in dri3_create_drawable()
368 pdraw->base.drawable = drawable; in dri3_create_drawable()
369 pdraw->base.psc = &psc->base; in dri3_create_drawable()
377 &pdraw->loader_drawable)) { in dri3_create_drawable()
378 free(pdraw); in dri3_create_drawable()
382 return &pdraw->base; in dri3_create_drawable()
391 dri3_wait_for_msc(__GLXDRIdrawable *pdraw, int64_t target_msc, int64_t divisor, in dri3_wait_for_msc() argument
394 struct dri3_drawable *priv = (struct dri3_drawable *) pdraw; in dri3_wait_for_msc()
408 dri3_drawable_get_msc(struct glx_screen *psc, __GLXDRIdrawable *pdraw, in dri3_drawable_get_msc() argument
411 return dri3_wait_for_msc(pdraw, 0, 0, 0, ust, msc,sbc); in dri3_drawable_get_msc()
421 dri3_wait_for_sbc(__GLXDRIdrawable *pdraw, int64_t target_sbc, int64_t *ust, in dri3_wait_for_sbc() argument
424 struct dri3_drawable *priv = (struct dri3_drawable *) pdraw; in dri3_wait_for_sbc()
431 dri3_copy_sub_buffer(__GLXDRIdrawable *pdraw, int x, int y, in dri3_copy_sub_buffer() argument
435 struct dri3_drawable *priv = (struct dri3_drawable *) pdraw; in dri3_copy_sub_buffer()
469 struct dri3_drawable *pdraw = loader_drawable_to_dri3_drawable(draw); in dri3_flush_front_buffer() local
472 if (!pdraw) in dri3_flush_front_buffer()
475 if (!pdraw->base.psc) in dri3_flush_front_buffer()
478 psc = (struct dri3_screen *) pdraw->base.psc; in dri3_flush_front_buffer()
500 struct dri3_drawable *pdraw = loader_drawable_to_dri3_drawable(draw); in dri3_flush_swap_buffers() local
503 if (!pdraw) in dri3_flush_swap_buffers()
506 if (!pdraw->base.psc) in dri3_flush_swap_buffers()
509 psc = (struct dri3_screen *) pdraw->base.psc; in dri3_flush_swap_buffers()
564 dri3_swap_buffers(__GLXDRIdrawable *pdraw, int64_t target_msc, int64_t divisor, in dri3_swap_buffers() argument
567 struct dri3_drawable *priv = (struct dri3_drawable *) pdraw; in dri3_swap_buffers()
579 dri3_get_buffer_age(__GLXDRIdrawable *pdraw) in dri3_get_buffer_age() argument
581 struct dri3_drawable *priv = (struct dri3_drawable *)pdraw; in dri3_get_buffer_age()
606 dri3_set_swap_interval(__GLXDRIdrawable *pdraw, int interval) in dri3_set_swap_interval() argument
608 assert(pdraw != NULL); in dri3_set_swap_interval()
610 struct dri3_drawable *priv = (struct dri3_drawable *) pdraw; in dri3_set_swap_interval()
642 dri3_get_swap_interval(__GLXDRIdrawable *pdraw) in dri3_get_swap_interval() argument
644 assert(pdraw != NULL); in dri3_get_swap_interval()
646 struct dri3_drawable *priv = (struct dri3_drawable *) pdraw; in dri3_get_swap_interval()
659 struct dri3_drawable *pdraw = (struct dri3_drawable *) base; in dri3_bind_tex_image() local
662 if (pdraw != NULL) { in dri3_bind_tex_image()
665 (*psc->f->invalidate)(pdraw->loader_drawable.dri_drawable); in dri3_bind_tex_image()
670 pdraw->base.textureTarget, in dri3_bind_tex_image()
671 pdraw->base.textureFormat, in dri3_bind_tex_image()
672 pdraw->loader_drawable.dri_drawable); in dri3_bind_tex_image()
682 struct dri3_drawable *pdraw = (struct dri3_drawable *) base; in dri3_release_tex_image() local
685 if (pdraw != NULL) { in dri3_release_tex_image()
691 pdraw->base.textureTarget, in dri3_release_tex_image()
692 pdraw->loader_drawable.dri_drawable); in dri3_release_tex_image()