Lines Matching refs:psurf
46 struct pipe_surface *psurf = &surface->base; in fd_create_surface() local
49 pipe_reference_init(&psurf->reference, 1); in fd_create_surface()
50 pipe_resource_reference(&psurf->texture, ptex); in fd_create_surface()
52 psurf->context = pctx; in fd_create_surface()
53 psurf->format = surf_tmpl->format; in fd_create_surface()
54 psurf->width = u_minify(ptex->width0, level); in fd_create_surface()
55 psurf->height = u_minify(ptex->height0, level); in fd_create_surface()
56 psurf->nr_samples = surf_tmpl->nr_samples; in fd_create_surface()
59 psurf->u.buf.first_element = surf_tmpl->u.buf.first_element; in fd_create_surface()
60 psurf->u.buf.last_element = surf_tmpl->u.buf.last_element; in fd_create_surface()
62 psurf->u.tex.level = level; in fd_create_surface()
63 psurf->u.tex.first_layer = surf_tmpl->u.tex.first_layer; in fd_create_surface()
64 psurf->u.tex.last_layer = surf_tmpl->u.tex.last_layer; in fd_create_surface()
68 DBG("TODO: %ux%u", psurf->width, psurf->height); in fd_create_surface()
74 fd_surface_destroy(struct pipe_context *pctx, struct pipe_surface *psurf) in fd_surface_destroy() argument
76 pipe_resource_reference(&psurf->texture, NULL); in fd_surface_destroy()
77 FREE(psurf); in fd_surface_destroy()