Lines Matching refs:psurf
49 struct pipe_surface *psurf = &surface->base; in fd_create_surface() local
52 pipe_reference_init(&psurf->reference, 1); in fd_create_surface()
53 pipe_resource_reference(&psurf->texture, ptex); in fd_create_surface()
55 psurf->context = pctx; in fd_create_surface()
56 psurf->format = surf_tmpl->format; in fd_create_surface()
57 psurf->width = u_minify(ptex->width0, level); in fd_create_surface()
58 psurf->height = u_minify(ptex->height0, level); in fd_create_surface()
59 psurf->u.tex.level = level; in fd_create_surface()
60 psurf->u.tex.first_layer = surf_tmpl->u.tex.first_layer; in fd_create_surface()
61 psurf->u.tex.last_layer = surf_tmpl->u.tex.last_layer; in fd_create_surface()
64 DBG("TODO: %ux%u", psurf->width, psurf->height); in fd_create_surface()
70 fd_surface_destroy(struct pipe_context *pctx, struct pipe_surface *psurf) in fd_surface_destroy() argument
72 pipe_resource_reference(&psurf->texture, NULL); in fd_surface_destroy()
73 FREE(psurf); in fd_surface_destroy()