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
279 pcp = calloc(1, sizeof *pcp); in dri2_create_context_attribs()
280 if (pcp == NULL) { in dri2_create_context_attribs()
285 if (!glx_context_init(&pcp->base, &psc->base, config_base)) in dri2_create_context_attribs()
319 pcp->base.renderType = renderType; in dri2_create_context_attribs()
322 pcp->base.noError = GL_TRUE; in dri2_create_context_attribs()
324 pcp->driContext = in dri2_create_context_attribs()
332 pcp); in dri2_create_context_attribs()
334 if (pcp->driContext == NULL) in dri2_create_context_attribs()
337 pcp->base.vtable = &dri2_context_vtable; in dri2_create_context_attribs()
339 return &pcp->base; in dri2_create_context_attribs()
342 free(pcp); in dri2_create_context_attribs()
966 struct dri2_context *pcp = (struct dri2_context *) loaderPrivate; in driSetBackgroundContext() local
967 __glXSetCurrentContext(&pcp->base); in driSetBackgroundContext()
973 struct dri2_context *pcp = (struct dri2_context *) loaderPrivate; in driIsThreadSafe() local
979 return pcp->base.psc->dpy->lock_fns != NULL; in driIsThreadSafe()
1032 struct dri2_context *pcp = (struct dri2_context *) gc; in dri2_bind_tex_image() local
1053 (*psc->texBuffer->setTexBuffer2) (pcp->driContext, in dri2_bind_tex_image()
1059 (*psc->texBuffer->setTexBuffer) (pcp->driContext, in dri2_bind_tex_image()
1070 struct dri2_context *pcp = (struct dri2_context *) gc; in dri2_release_tex_image() local
1081 (*psc->texBuffer->releaseTexBuffer) (pcp->driContext, in dri2_release_tex_image()