Lines Matching refs:pcp
116 struct dri2_context *pcp = (struct dri2_context *) context; in dri2_destroy_context() local
119 driReleaseDrawables(&pcp->base); in dri2_destroy_context()
123 (*psc->core->destroyContext) (pcp->driContext); in dri2_destroy_context()
125 free(pcp); in dri2_destroy_context()
132 struct dri2_context *pcp = (struct dri2_context *) context; in dri2_bind_context() local
133 struct dri2_screen *psc = (struct dri2_screen *) pcp->base.psc; in dri2_bind_context()
142 driReleaseDrawables(&pcp->base); in dri2_bind_context()
154 if (!(*psc->core->bindContext) (pcp->driContext, dri_draw, dri_read)) in dri2_bind_context()
173 struct dri2_context *pcp = (struct dri2_context *) context; in dri2_unbind_context() local
174 struct dri2_screen *psc = (struct dri2_screen *) pcp->base.psc; in dri2_unbind_context()
176 (*psc->core->unbindContext) (pcp->driContext); in dri2_unbind_context()
184 struct dri2_context *pcp, *pcp_shared; in dri2_create_context() local
205 pcp = calloc(1, sizeof *pcp); in dri2_create_context()
206 if (pcp == NULL) in dri2_create_context()
209 if (!glx_context_init(&pcp->base, &psc->base, &config->base)) { in dri2_create_context()
210 free(pcp); in dri2_create_context()
214 pcp->base.renderType = renderType; in dri2_create_context()
216 pcp->driContext = in dri2_create_context()
218 config->driConfig, shared, pcp); in dri2_create_context()
220 if (pcp->driContext == NULL) { in dri2_create_context()
221 free(pcp); in dri2_create_context()
225 pcp->base.vtable = &dri2_context_vtable; in dri2_create_context()
227 return &pcp->base; in dri2_create_context()
238 struct dri2_context *pcp = NULL; in dri2_create_context_attribs() local
275 pcp = calloc(1, sizeof *pcp); in dri2_create_context_attribs()
276 if (pcp == NULL) { in dri2_create_context_attribs()
281 if (!glx_context_init(&pcp->base, &psc->base, config_base)) in dri2_create_context_attribs()
315 pcp->base.renderType = renderType; in dri2_create_context_attribs()
317 pcp->driContext = in dri2_create_context_attribs()
325 pcp); in dri2_create_context_attribs()
327 if (pcp->driContext == NULL) in dri2_create_context_attribs()
330 pcp->base.vtable = &dri2_context_vtable; in dri2_create_context_attribs()
332 return &pcp->base; in dri2_create_context_attribs()
335 free(pcp); in dri2_create_context_attribs()
958 struct dri2_context *pcp = (struct dri2_context *) loaderPrivate; in driSetBackgroundContext() local
959 __glXSetCurrentContext(&pcp->base); in driSetBackgroundContext()
965 struct dri2_context *pcp = (struct dri2_context *) loaderPrivate; in driIsThreadSafe() local
971 return pcp->base.psc->dpy->lock_fns != NULL; in driIsThreadSafe()
1024 struct dri2_context *pcp = (struct dri2_context *) gc; in dri2_bind_tex_image() local
1045 (*psc->texBuffer->setTexBuffer2) (pcp->driContext, in dri2_bind_tex_image()
1051 (*psc->texBuffer->setTexBuffer) (pcp->driContext, in dri2_bind_tex_image()
1062 struct dri2_context *pcp = (struct dri2_context *) gc; in dri2_release_tex_image() local
1073 (*psc->texBuffer->releaseTexBuffer) (pcp->driContext, in dri2_release_tex_image()