Lines Matching refs:psurf
507 struct pipe_surface *psurf = &surf->base; in lima_surface_create() local
510 pipe_reference_init(&psurf->reference, 1); in lima_surface_create()
511 pipe_resource_reference(&psurf->texture, pres); in lima_surface_create()
513 psurf->context = pctx; in lima_surface_create()
514 psurf->format = surf_tmpl->format; in lima_surface_create()
515 psurf->width = u_minify(pres->width0, level); in lima_surface_create()
516 psurf->height = u_minify(pres->height0, level); in lima_surface_create()
517 psurf->u.tex.level = level; in lima_surface_create()
518 psurf->u.tex.first_layer = surf_tmpl->u.tex.first_layer; in lima_surface_create()
519 psurf->u.tex.last_layer = surf_tmpl->u.tex.last_layer; in lima_surface_create()
521 surf->tiled_w = align(psurf->width, 16) >> 4; in lima_surface_create()
522 surf->tiled_h = align(psurf->height, 16) >> 4; in lima_surface_create()
525 if (util_format_has_stencil(util_format_description(psurf->format))) in lima_surface_create()
527 if (util_format_has_depth(util_format_description(psurf->format))) in lima_surface_create()
529 if (!util_format_is_depth_or_stencil(psurf->format)) in lima_surface_create()
536 lima_surface_destroy(struct pipe_context *pctx, struct pipe_surface *psurf) in lima_surface_destroy() argument
538 struct lima_surface *surf = lima_surface(psurf); in lima_surface_destroy()
540 pipe_resource_reference(&psurf->texture, NULL); in lima_surface_destroy()