Lines Matching refs:psurf
643 struct pipe_surface *psurf = &surface->base;
646 pipe_reference_init(&psurf->reference, 1);
647 pipe_resource_reference(&psurf->texture, ptex);
649 psurf->context = pctx;
650 psurf->format = surf_tmpl->format;
651 psurf->width = u_minify(ptex->width0, level);
652 psurf->height = u_minify(ptex->height0, level);
653 psurf->u.tex.level = level;
654 psurf->u.tex.first_layer = surf_tmpl->u.tex.first_layer;
655 psurf->u.tex.last_layer = surf_tmpl->u.tex.last_layer;
657 psurf->u.tex.first_layer * rsc->cube_map_stride);
664 vc4_surface_destroy(struct pipe_context *pctx, struct pipe_surface *psurf)
666 pipe_resource_reference(&psurf->texture, NULL);
667 FREE(psurf);
671 vc4_dump_surface_non_msaa(struct pipe_surface *psurf)
673 struct pipe_resource *prsc = psurf->texture;
677 uint32_t width = psurf->width;
678 uint32_t height = psurf->height;
686 __func__, util_format_short_name(psurf->format));
767 vc4_surface_msaa_get_sample(struct pipe_surface *psurf,
770 struct pipe_resource *prsc = psurf->texture;
773 uint32_t tiles_w = DIV_ROUND_UP(psurf->width, 32);
794 vc4_dump_surface_msaa_char(struct pipe_surface *psurf,
804 uint32_t pix = vc4_surface_msaa_get_sample(psurf,
841 vc4_dump_surface_msaa(struct pipe_surface *psurf)
844 uint32_t tiles_w = DIV_ROUND_UP(psurf->width, tile_w);
845 uint32_t tiles_h = DIV_ROUND_UP(psurf->height, tile_h);
853 psurf->width, psurf->height, psurf->texture->nr_samples);
859 for (int ty = 0; ty < psurf->height; ty += tile_h) {
862 for (int tx = 0; tx < psurf->width; tx += tile_w) {
873 vc4_dump_surface_msaa_char(psurf,
896 vc4_dump_surface(struct pipe_surface *psurf)
898 if (!psurf)
901 if (psurf->texture->nr_samples > 1)
902 vc4_dump_surface_msaa(psurf);
904 vc4_dump_surface_non_msaa(psurf);