Lines Matching refs:psurf
43 struct pipe_surface *psurf = &surface->base;
46 pipe_reference_init(&psurf->reference, 1);
47 pipe_resource_reference(&psurf->texture, ptex);
49 psurf->context = pctx;
50 psurf->format = surf_tmpl->format;
51 psurf->width = u_minify(ptex->width0, level);
52 psurf->height = u_minify(ptex->height0, level);
53 psurf->nr_samples = surf_tmpl->nr_samples;
56 psurf->u.buf.first_element = surf_tmpl->u.buf.first_element;
57 psurf->u.buf.last_element = surf_tmpl->u.buf.last_element;
59 psurf->u.tex.level = level;
60 psurf->u.tex.first_layer = surf_tmpl->u.tex.first_layer;
61 psurf->u.tex.last_layer = surf_tmpl->u.tex.last_layer;
68 fd_surface_destroy(struct pipe_context *pctx, struct pipe_surface *psurf)
70 pipe_resource_reference(&psurf->texture, NULL);
71 FREE(psurf);