Lines Matching refs:pcp
514 struct dri_context *pcp = (struct dri_context *) context;
517 driReleaseDrawables(&pcp->base);
522 (*psc->core->destroyContext) (pcp->driContext);
524 XF86DRIDestroyContext(psc->base.dpy, psc->base.scr, pcp->hwContextID);
525 Xfree(pcp);
532 struct dri_context *pcp = (struct dri_context *) context;
533 struct dri_screen *psc = (struct dri_screen *) pcp->base.psc;
539 driReleaseDrawables(&pcp->base);
544 if ((*psc->core->bindContext) (pcp->driContext,
554 struct dri_context *pcp = (struct dri_context *) context;
555 struct dri_screen *psc = (struct dri_screen *) pcp->base.psc;
557 (*psc->core->unbindContext) (pcp->driContext);
577 struct dri_context *pcp, *pcp_shared;
598 pcp = Xmalloc(sizeof *pcp);
599 if (pcp == NULL)
602 memset(pcp, 0, sizeof *pcp);
603 if (!glx_context_init(&pcp->base, &psc->base, &config->base)) {
604 Xfree(pcp);
610 &pcp->hwContextID, &hwContext)) {
611 Xfree(pcp);
615 pcp->driContext =
618 renderType, shared, hwContext, pcp);
619 if (pcp->driContext == NULL) {
620 XF86DRIDestroyContext(psc->base.dpy, psc->base.scr, pcp->hwContextID);
621 Xfree(pcp);
625 pcp->base.vtable = &dri_context_vtable;
627 return &pcp->base;