Lines Matching refs:psurf

746         struct pipe_surface *psurf = &surface->base;
749 pipe_reference_init(&psurf->reference, 1);
750 pipe_resource_reference(&psurf->texture, ptex);
752 psurf->context = pctx;
753 psurf->format = surf_tmpl->format;
754 psurf->width = u_minify(ptex->width0, level);
755 psurf->height = u_minify(ptex->height0, level);
756 psurf->u.tex.level = level;
757 psurf->u.tex.first_layer = surf_tmpl->u.tex.first_layer;
758 psurf->u.tex.last_layer = surf_tmpl->u.tex.last_layer;
760 psurf->u.tex.first_layer * rsc->cube_map_stride);
767 vc4_surface_destroy(struct pipe_context *pctx, struct pipe_surface *psurf)
769 pipe_resource_reference(&psurf->texture, NULL);
770 FREE(psurf);
774 vc4_dump_surface_non_msaa(struct pipe_surface *psurf)
776 struct pipe_resource *prsc = psurf->texture;
780 uint32_t width = psurf->width;
781 uint32_t height = psurf->height;
789 __func__, util_format_short_name(psurf->format));
870 vc4_surface_msaa_get_sample(struct pipe_surface *psurf,
873 struct pipe_resource *prsc = psurf->texture;
876 uint32_t tiles_w = DIV_ROUND_UP(psurf->width, 32);
897 vc4_dump_surface_msaa_char(struct pipe_surface *psurf,
907 uint32_t pix = vc4_surface_msaa_get_sample(psurf,
944 vc4_dump_surface_msaa(struct pipe_surface *psurf)
947 uint32_t tiles_w = DIV_ROUND_UP(psurf->width, tile_w);
948 uint32_t tiles_h = DIV_ROUND_UP(psurf->height, tile_h);
954 psurf->width, psurf->height, psurf->texture->nr_samples);
960 for (int ty = 0; ty < psurf->height; ty += tile_h) {
963 for (int tx = 0; tx < psurf->width; tx += tile_w) {
974 vc4_dump_surface_msaa_char(psurf,
993 vc4_dump_surface(struct pipe_surface *psurf)
995 if (!psurf)
998 if (psurf->texture->nr_samples > 1)
999 vc4_dump_surface_msaa(psurf);
1001 vc4_dump_surface_non_msaa(psurf);