Lines Matching refs:psurf
733 struct pipe_surface *psurf = &surface->base; in vc4_create_surface() local
736 pipe_reference_init(&psurf->reference, 1); in vc4_create_surface()
737 pipe_resource_reference(&psurf->texture, ptex); in vc4_create_surface()
739 psurf->context = pctx; in vc4_create_surface()
740 psurf->format = surf_tmpl->format; in vc4_create_surface()
741 psurf->width = u_minify(ptex->width0, level); in vc4_create_surface()
742 psurf->height = u_minify(ptex->height0, level); in vc4_create_surface()
743 psurf->u.tex.level = level; in vc4_create_surface()
744 psurf->u.tex.first_layer = surf_tmpl->u.tex.first_layer; in vc4_create_surface()
745 psurf->u.tex.last_layer = surf_tmpl->u.tex.last_layer; in vc4_create_surface()
747 psurf->u.tex.first_layer * rsc->cube_map_stride); in vc4_create_surface()
754 vc4_surface_destroy(struct pipe_context *pctx, struct pipe_surface *psurf) in vc4_surface_destroy() argument
756 pipe_resource_reference(&psurf->texture, NULL); in vc4_surface_destroy()
757 FREE(psurf); in vc4_surface_destroy()
761 vc4_dump_surface_non_msaa(struct pipe_surface *psurf) in vc4_dump_surface_non_msaa() argument
763 struct pipe_resource *prsc = psurf->texture; in vc4_dump_surface_non_msaa()
767 uint32_t width = psurf->width; in vc4_dump_surface_non_msaa()
768 uint32_t height = psurf->height; in vc4_dump_surface_non_msaa()
776 __func__, util_format_short_name(psurf->format)); in vc4_dump_surface_non_msaa()
857 vc4_surface_msaa_get_sample(struct pipe_surface *psurf, in vc4_surface_msaa_get_sample() argument
860 struct pipe_resource *prsc = psurf->texture; in vc4_surface_msaa_get_sample()
863 uint32_t tiles_w = DIV_ROUND_UP(psurf->width, 32); in vc4_surface_msaa_get_sample()
884 vc4_dump_surface_msaa_char(struct pipe_surface *psurf, in vc4_dump_surface_msaa_char() argument
894 uint32_t pix = vc4_surface_msaa_get_sample(psurf, in vc4_dump_surface_msaa_char()
931 vc4_dump_surface_msaa(struct pipe_surface *psurf) in vc4_dump_surface_msaa() argument
934 uint32_t tiles_w = DIV_ROUND_UP(psurf->width, tile_w); in vc4_dump_surface_msaa()
935 uint32_t tiles_h = DIV_ROUND_UP(psurf->height, tile_h); in vc4_dump_surface_msaa()
941 psurf->width, psurf->height, psurf->texture->nr_samples); in vc4_dump_surface_msaa()
947 for (int ty = 0; ty < psurf->height; ty += tile_h) { in vc4_dump_surface_msaa()
950 for (int tx = 0; tx < psurf->width; tx += tile_w) { in vc4_dump_surface_msaa()
961 vc4_dump_surface_msaa_char(psurf, in vc4_dump_surface_msaa()
980 vc4_dump_surface(struct pipe_surface *psurf) in vc4_dump_surface() argument
982 if (!psurf) in vc4_dump_surface()
985 if (psurf->texture->nr_samples > 1) in vc4_dump_surface()
986 vc4_dump_surface_msaa(psurf); in vc4_dump_surface()
988 vc4_dump_surface_non_msaa(psurf); in vc4_dump_surface()