Lines Matching refs:pcp
104 struct dri3_context *pcp = (struct dri3_context *) __glXGetCurrentContext(); in glx_dri3_in_current_context() local
107 return (&pcp->base != &dummyContext) && pcp->base.psc == &psc->base; in glx_dri3_in_current_context()
123 struct dri3_context *pcp = (struct dri3_context *) gc; in glx_dri3_get_dri_screen() local
124 struct dri3_screen *psc = (struct dri3_screen *) pcp->base.psc; in glx_dri3_get_dri_screen()
174 struct dri3_context *pcp = (struct dri3_context *) context; in dri3_destroy_context() local
177 driReleaseDrawables(&pcp->base); in dri3_destroy_context()
181 (*psc->core->destroyContext) (pcp->driContext); in dri3_destroy_context()
183 free(pcp); in dri3_destroy_context()
190 struct dri3_context *pcp = (struct dri3_context *) context; in dri3_bind_context() local
191 struct dri3_screen *psc = (struct dri3_screen *) pcp->base.psc; in dri3_bind_context()
198 driReleaseDrawables(&pcp->base); in dri3_bind_context()
210 if (!(*psc->core->bindContext) (pcp->driContext, dri_draw, dri_read)) in dri3_bind_context()
224 struct dri3_context *pcp = (struct dri3_context *) context; in dri3_unbind_context() local
225 struct dri3_screen *psc = (struct dri3_screen *) pcp->base.psc; in dri3_unbind_context()
227 (*psc->core->unbindContext) (pcp->driContext); in dri3_unbind_context()
238 struct dri3_context *pcp = NULL; in dri3_create_context_attribs() local
271 pcp = calloc(1, sizeof *pcp); in dri3_create_context_attribs()
272 if (pcp == NULL) { in dri3_create_context_attribs()
277 if (!glx_context_init(&pcp->base, &psc->base, config_base)) in dri3_create_context_attribs()
308 pcp->driContext = in dri3_create_context_attribs()
317 pcp); in dri3_create_context_attribs()
319 if (pcp->driContext == NULL) in dri3_create_context_attribs()
322 pcp->base.vtable = &dri3_context_vtable; in dri3_create_context_attribs()
324 return &pcp->base; in dri3_create_context_attribs()
327 free(pcp); in dri3_create_context_attribs()
518 struct dri3_context *pcp = (struct dri3_context *)loaderPrivate; in dri_set_background_context() local
519 __glXSetCurrentContext(&pcp->base); in dri_set_background_context()
657 struct dri3_context *pcp = (struct dri3_context *) gc; in dri3_bind_tex_image() local
669 (*psc->texBuffer->setTexBuffer2) (pcp->driContext, in dri3_bind_tex_image()
680 struct dri3_context *pcp = (struct dri3_context *) gc; in dri3_release_tex_image() local
690 (*psc->texBuffer->releaseTexBuffer) (pcp->driContext, in dri3_release_tex_image()