Lines Matching refs:psurf
1054 struct pipe_surface *psurf = &surface->base; in v3d_create_surface() local
1058 pipe_reference_init(&psurf->reference, 1); in v3d_create_surface()
1059 pipe_resource_reference(&psurf->texture, ptex); in v3d_create_surface()
1061 psurf->context = pctx; in v3d_create_surface()
1062 psurf->format = surf_tmpl->format; in v3d_create_surface()
1063 psurf->width = u_minify(ptex->width0, level); in v3d_create_surface()
1064 psurf->height = u_minify(ptex->height0, level); in v3d_create_surface()
1065 psurf->u.tex.level = level; in v3d_create_surface()
1066 psurf->u.tex.first_layer = surf_tmpl->u.tex.first_layer; in v3d_create_surface()
1067 psurf->u.tex.last_layer = surf_tmpl->u.tex.last_layer; in v3d_create_surface()
1070 psurf->u.tex.first_layer); in v3d_create_surface()
1073 surface->format = v3d_get_rt_format(&screen->devinfo, psurf->format); in v3d_create_surface()
1076 util_format_description(psurf->format); in v3d_create_surface()
1079 psurf->format != PIPE_FORMAT_B5G6R5_UNORM); in v3d_create_surface()
1081 if (util_format_is_depth_or_stencil(psurf->format)) { in v3d_create_surface()
1082 switch (psurf->format) { in v3d_create_surface()
1119 v3d_surface_destroy(struct pipe_context *pctx, struct pipe_surface *psurf) in v3d_surface_destroy() argument
1121 struct v3d_surface *surf = v3d_surface(psurf); in v3d_surface_destroy()
1126 pipe_resource_reference(&psurf->texture, NULL); in v3d_surface_destroy()
1127 FREE(psurf); in v3d_surface_destroy()