Lines Matching defs:pctx
128 create_surface(struct pipe_context *pctx,
134 struct zink_screen *screen = zink_screen(pctx->screen);
165 surface->base.context = pctx;
201 do_create_surface(struct pipe_context *pctx, struct pipe_resource *pres, const struct pipe_surface *templ, VkImageViewCreateInfo *ivci, uint32_t hash, bool actually)
204 struct zink_surface *surface = create_surface(pctx, pres, templ, ivci, actually);
244 wrap_surface(struct pipe_context *pctx, struct pipe_surface *psurf)
250 csurf->base.context = pctx;
256 zink_create_surface(struct pipe_context *pctx,
263 VkImageViewCreateInfo ivci = create_ivci(zink_screen(pctx->screen), res, templ,
269 struct zink_surface *surface = do_create_surface(pctx, pres, templ, &ivci, 0, false);
275 psurf = zink_get_surface(zink_context(pctx), pres, templ, &ivci);
279 struct zink_ctx_surface *csurf = (struct zink_ctx_surface*)wrap_surface(pctx, psurf);
286 struct zink_resource *transient = zink_resource(pctx->screen->resource_create(pctx->screen, &rtempl));
290 csurf->transient = (struct zink_ctx_surface*)wrap_surface(pctx, (struct pipe_surface*)create_surface(pctx, &transient->base.b, templ, &ivci, true));
293 pipe_surface_release(pctx, &psurf);
336 zink_surface_destroy(struct pipe_context *pctx,
340 zink_surface_reference(zink_screen(pctx->screen), &csurf->surf, NULL);
341 pipe_surface_release(pctx, (struct pipe_surface**)&csurf->transient);