Lines Matching refs:pcp
253 struct drisw_context *pcp = (struct drisw_context *) context; in drisw_destroy_context() local
256 driReleaseDrawables(&pcp->base); in drisw_destroy_context()
261 (*psc->core->destroyContext) (pcp->driContext); in drisw_destroy_context()
263 Xfree(pcp); in drisw_destroy_context()
270 struct drisw_context *pcp = (struct drisw_context *) context; in drisw_bind_context() local
271 struct drisw_screen *psc = (struct drisw_screen *) pcp->base.psc; in drisw_bind_context()
277 driReleaseDrawables(&pcp->base); in drisw_bind_context()
282 if ((*psc->core->bindContext) (pcp->driContext, in drisw_bind_context()
292 struct drisw_context *pcp = (struct drisw_context *) context; in drisw_unbind_context() local
293 struct drisw_screen *psc = (struct drisw_screen *) pcp->base.psc; in drisw_unbind_context()
295 (*psc->core->unbindContext) (pcp->driContext); in drisw_unbind_context()
304 struct drisw_context *pcp = (struct drisw_context *) gc; in drisw_bind_tex_image() local
319 (*psc->texBuffer->setTexBuffer2) (pcp->driContext, in drisw_bind_tex_image()
325 (*psc->texBuffer->setTexBuffer) (pcp->driContext, in drisw_bind_tex_image()
337 struct dri2_context *pcp = (struct dri2_context *) gc; in drisw_release_tex_image() local
351 (*psc->texBuffer->releaseTexBuffer) (pcp->driContext, in drisw_release_tex_image()
376 struct drisw_context *pcp, *pcp_shared; in drisw_create_context() local
396 pcp = Xmalloc(sizeof *pcp); in drisw_create_context()
397 if (pcp == NULL) in drisw_create_context()
400 memset(pcp, 0, sizeof *pcp); in drisw_create_context()
401 if (!glx_context_init(&pcp->base, &psc->base, &config->base)) { in drisw_create_context()
402 Xfree(pcp); in drisw_create_context()
406 pcp->driContext = in drisw_create_context()
408 config->driConfig, shared, pcp); in drisw_create_context()
409 if (pcp->driContext == NULL) { in drisw_create_context()
410 Xfree(pcp); in drisw_create_context()
414 pcp->base.vtable = &drisw_context_vtable; in drisw_create_context()
416 return &pcp->base; in drisw_create_context()
427 struct drisw_context *pcp, *pcp_shared; in drisw_create_context_attribs() local
461 pcp = Xmalloc(sizeof *pcp); in drisw_create_context_attribs()
462 if (pcp == NULL) in drisw_create_context_attribs()
465 memset(pcp, 0, sizeof *pcp); in drisw_create_context_attribs()
466 if (!glx_context_init(&pcp->base, &psc->base, &config->base)) { in drisw_create_context_attribs()
467 Xfree(pcp); in drisw_create_context_attribs()
485 pcp->driContext = in drisw_create_context_attribs()
493 pcp); in drisw_create_context_attribs()
494 if (pcp->driContext == NULL) { in drisw_create_context_attribs()
495 Xfree(pcp); in drisw_create_context_attribs()
499 pcp->base.vtable = &drisw_context_vtable; in drisw_create_context_attribs()
501 return &pcp->base; in drisw_create_context_attribs()