Lines Matching refs:psurf
559 struct pipe_surface *psurf = &surf->base;
562 pipe_reference_init(&psurf->reference, 1);
563 pipe_resource_reference(&psurf->texture, pres);
565 psurf->context = pctx;
566 psurf->format = surf_tmpl->format;
567 psurf->width = u_minify(pres->width0, level);
568 psurf->height = u_minify(pres->height0, level);
569 psurf->nr_samples = surf_tmpl->nr_samples;
570 psurf->u.tex.level = level;
571 psurf->u.tex.first_layer = surf_tmpl->u.tex.first_layer;
572 psurf->u.tex.last_layer = surf_tmpl->u.tex.last_layer;
574 surf->tiled_w = align(psurf->width, 16) >> 4;
575 surf->tiled_h = align(psurf->height, 16) >> 4;
578 if (util_format_has_stencil(util_format_description(psurf->format)))
580 if (util_format_has_depth(util_format_description(psurf->format)))
582 if (!util_format_is_depth_or_stencil(psurf->format))
589 lima_surface_destroy(struct pipe_context *pctx, struct pipe_surface *psurf)
591 struct lima_surface *surf = lima_surface(psurf);
593 pipe_resource_reference(&psurf->texture, NULL);