Lines Matching refs:pcp
233 struct drisw_context *pcp = (struct drisw_context *) context; in drisw_destroy_context() local
236 driReleaseDrawables(&pcp->base); in drisw_destroy_context()
240 (*psc->core->destroyContext) (pcp->driContext); in drisw_destroy_context()
242 free(pcp); in drisw_destroy_context()
249 struct drisw_context *pcp = (struct drisw_context *) context; in drisw_bind_context() local
250 struct drisw_screen *psc = (struct drisw_screen *) pcp->base.psc; in drisw_bind_context()
256 driReleaseDrawables(&pcp->base); in drisw_bind_context()
258 if ((*psc->core->bindContext) (pcp->driContext, in drisw_bind_context()
269 struct drisw_context *pcp = (struct drisw_context *) context; in drisw_unbind_context() local
270 struct drisw_screen *psc = (struct drisw_screen *) pcp->base.psc; in drisw_unbind_context()
272 (*psc->core->unbindContext) (pcp->driContext); in drisw_unbind_context()
281 struct drisw_context *pcp = (struct drisw_context *) gc; in drisw_bind_tex_image() local
296 (*psc->texBuffer->setTexBuffer2) (pcp->driContext, in drisw_bind_tex_image()
302 (*psc->texBuffer->setTexBuffer) (pcp->driContext, in drisw_bind_tex_image()
313 struct drisw_context *pcp = (struct drisw_context *) gc; in drisw_release_tex_image() local
327 (*psc->texBuffer->releaseTexBuffer) (pcp->driContext, in drisw_release_tex_image()
351 struct drisw_context *pcp, *pcp_shared; in drisw_create_context() local
375 pcp = calloc(1, sizeof *pcp); in drisw_create_context()
376 if (pcp == NULL) in drisw_create_context()
379 if (!glx_context_init(&pcp->base, &psc->base, &config->base)) { in drisw_create_context()
380 free(pcp); in drisw_create_context()
384 pcp->base.renderType = renderType; in drisw_create_context()
386 pcp->driContext = in drisw_create_context()
388 config->driConfig, shared, pcp); in drisw_create_context()
389 if (pcp->driContext == NULL) { in drisw_create_context()
390 free(pcp); in drisw_create_context()
394 pcp->base.vtable = &drisw_context_vtable; in drisw_create_context()
396 return &pcp->base; in drisw_create_context()
407 struct drisw_context *pcp, *pcp_shared; in drisw_create_context_attribs() local
452 pcp = calloc(1, sizeof *pcp); in drisw_create_context_attribs()
453 if (pcp == NULL) in drisw_create_context_attribs()
456 if (!glx_context_init(&pcp->base, &psc->base, config_base)) { in drisw_create_context_attribs()
457 free(pcp); in drisw_create_context_attribs()
479 pcp->base.renderType = renderType; in drisw_create_context_attribs()
481 pcp->driContext = in drisw_create_context_attribs()
489 pcp); in drisw_create_context_attribs()
490 if (pcp->driContext == NULL) { in drisw_create_context_attribs()
491 free(pcp); in drisw_create_context_attribs()
495 pcp->base.vtable = &drisw_context_vtable; in drisw_create_context_attribs()
497 return &pcp->base; in drisw_create_context_attribs()