Lines Matching refs:psurf
817 struct pipe_surface *psurf = &surface->base; in vc4_create_surface() local
820 pipe_reference_init(&psurf->reference, 1); in vc4_create_surface()
821 pipe_resource_reference(&psurf->texture, ptex); in vc4_create_surface()
823 psurf->context = pctx; in vc4_create_surface()
824 psurf->format = surf_tmpl->format; in vc4_create_surface()
825 psurf->width = u_minify(ptex->width0, level); in vc4_create_surface()
826 psurf->height = u_minify(ptex->height0, level); in vc4_create_surface()
827 psurf->u.tex.level = level; in vc4_create_surface()
828 psurf->u.tex.first_layer = surf_tmpl->u.tex.first_layer; in vc4_create_surface()
829 psurf->u.tex.last_layer = surf_tmpl->u.tex.last_layer; in vc4_create_surface()
831 psurf->u.tex.first_layer * rsc->cube_map_stride); in vc4_create_surface()
838 vc4_surface_destroy(struct pipe_context *pctx, struct pipe_surface *psurf) in vc4_surface_destroy() argument
840 pipe_resource_reference(&psurf->texture, NULL); in vc4_surface_destroy()
841 FREE(psurf); in vc4_surface_destroy()
845 vc4_dump_surface_non_msaa(struct pipe_surface *psurf) in vc4_dump_surface_non_msaa() argument
847 struct pipe_resource *prsc = psurf->texture; in vc4_dump_surface_non_msaa()
851 uint32_t width = psurf->width; in vc4_dump_surface_non_msaa()
852 uint32_t height = psurf->height; in vc4_dump_surface_non_msaa()
860 __func__, util_format_short_name(psurf->format)); in vc4_dump_surface_non_msaa()
941 vc4_surface_msaa_get_sample(struct pipe_surface *psurf, in vc4_surface_msaa_get_sample() argument
944 struct pipe_resource *prsc = psurf->texture; in vc4_surface_msaa_get_sample()
947 uint32_t tiles_w = DIV_ROUND_UP(psurf->width, 32); in vc4_surface_msaa_get_sample()
968 vc4_dump_surface_msaa_char(struct pipe_surface *psurf, in vc4_dump_surface_msaa_char() argument
978 uint32_t pix = vc4_surface_msaa_get_sample(psurf, in vc4_dump_surface_msaa_char()
1015 vc4_dump_surface_msaa(struct pipe_surface *psurf) in vc4_dump_surface_msaa() argument
1018 uint32_t tiles_w = DIV_ROUND_UP(psurf->width, tile_w); in vc4_dump_surface_msaa()
1019 uint32_t tiles_h = DIV_ROUND_UP(psurf->height, tile_h); in vc4_dump_surface_msaa()
1025 psurf->width, psurf->height, psurf->texture->nr_samples); in vc4_dump_surface_msaa()
1031 for (int ty = 0; ty < psurf->height; ty += tile_h) { in vc4_dump_surface_msaa()
1034 for (int tx = 0; tx < psurf->width; tx += tile_w) { in vc4_dump_surface_msaa()
1045 vc4_dump_surface_msaa_char(psurf, in vc4_dump_surface_msaa()
1064 vc4_dump_surface(struct pipe_surface *psurf) in vc4_dump_surface() argument
1066 if (!psurf) in vc4_dump_surface()
1069 if (psurf->texture->nr_samples > 1) in vc4_dump_surface()
1070 vc4_dump_surface_msaa(psurf); in vc4_dump_surface()
1072 vc4_dump_surface_non_msaa(psurf); in vc4_dump_surface()