Lines Matching refs:psurf
1023 struct pipe_surface *psurf = &surface->base; in v3d_create_surface() local
1027 pipe_reference_init(&psurf->reference, 1); in v3d_create_surface()
1028 pipe_resource_reference(&psurf->texture, ptex); in v3d_create_surface()
1030 psurf->context = pctx; in v3d_create_surface()
1031 psurf->format = surf_tmpl->format; in v3d_create_surface()
1032 psurf->width = u_minify(ptex->width0, level); in v3d_create_surface()
1033 psurf->height = u_minify(ptex->height0, level); in v3d_create_surface()
1034 psurf->u.tex.level = level; in v3d_create_surface()
1035 psurf->u.tex.first_layer = surf_tmpl->u.tex.first_layer; in v3d_create_surface()
1036 psurf->u.tex.last_layer = surf_tmpl->u.tex.last_layer; in v3d_create_surface()
1039 psurf->u.tex.first_layer); in v3d_create_surface()
1042 surface->format = v3d_get_rt_format(&screen->devinfo, psurf->format); in v3d_create_surface()
1045 util_format_description(psurf->format); in v3d_create_surface()
1048 psurf->format != PIPE_FORMAT_B5G6R5_UNORM); in v3d_create_surface()
1050 if (util_format_is_depth_or_stencil(psurf->format)) { in v3d_create_surface()
1051 switch (psurf->format) { in v3d_create_surface()
1088 v3d_surface_destroy(struct pipe_context *pctx, struct pipe_surface *psurf) in v3d_surface_destroy() argument
1090 struct v3d_surface *surf = v3d_surface(psurf); in v3d_surface_destroy()
1095 pipe_resource_reference(&psurf->texture, NULL); in v3d_surface_destroy()
1096 FREE(psurf); in v3d_surface_destroy()