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