• Home
  • Raw
  • Download

Lines Matching refs:psurf

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