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