Lines Matching refs:csurf
246 struct zink_ctx_surface *csurf = CALLOC_STRUCT(zink_ctx_surface); in wrap_surface() local
247 csurf->base = *psurf; in wrap_surface()
248 pipe_reference_init(&csurf->base.reference, 1); in wrap_surface()
249 csurf->surf = (struct zink_surface*)psurf; in wrap_surface()
250 csurf->base.context = pctx; in wrap_surface()
252 return &csurf->base; in wrap_surface()
279 struct zink_ctx_surface *csurf = (struct zink_ctx_surface*)wrap_surface(pctx, psurf); in zink_create_surface() local
290 …csurf->transient = (struct zink_ctx_surface*)wrap_surface(pctx, (struct pipe_surface*)create_surfa… in zink_create_surface()
291 if (!csurf->transient) { in zink_create_surface()
299 return &csurf->base; in zink_create_surface()
339 struct zink_ctx_surface *csurf = (struct zink_ctx_surface *)psurface; in zink_surface_destroy() local
340 zink_surface_reference(zink_screen(pctx->screen), &csurf->surf, NULL); in zink_surface_destroy()
341 pipe_surface_release(pctx, (struct pipe_surface**)&csurf->transient); in zink_surface_destroy()
342 FREE(csurf); in zink_surface_destroy()