Lines Matching defs:surf

45 static void svga_mark_surface_dirty(struct pipe_surface *surf);
438 struct pipe_surface *surf = NULL;
456 surf = svga_create_surface_view(pipe, pt, surf_tmpl, view);
460 return surf;
662 struct pipe_surface *surf)
665 struct svga_surface *s = svga_surface(surf);
666 struct svga_texture *t = svga_texture(surf->texture);
667 struct svga_screen *ss = svga_screen(surf->texture->screen);
694 if (surf->context != pipe) {
711 pipe_resource_reference(&surf->texture, NULL);
712 FREE(surf);
720 svga_mark_surface_dirty(struct pipe_surface *surf)
722 struct svga_surface *s = svga_surface(surf);
723 struct svga_texture *tex = svga_texture(surf->texture);
730 svga_define_texture_level(tex, surf->u.tex.first_layer,
731 surf->u.tex.level);
744 svga_age_texture_view(tex, surf->u.tex.level);
781 svga_propagate_surface(struct svga_context *svga, struct pipe_surface *surf,
784 struct svga_surface *s = svga_surface(surf);
785 struct svga_texture *tex = svga_texture(surf->texture);
786 struct svga_screen *ss = svga_screen(surf->texture->screen);
802 svga_age_texture_view(tex, surf->u.tex.level);
810 unsigned dstLevel = surf->u.tex.level;
814 if (surf->texture->target == PIPE_TEXTURE_CUBE) {
816 layer = surf->u.tex.first_layer;
818 else if (surf->texture->target == PIPE_TEXTURE_1D_ARRAY ||
819 surf->texture->target == PIPE_TEXTURE_2D_ARRAY ||
820 surf->texture->target == PIPE_TEXTURE_CUBE_ARRAY) {
822 layer = surf->u.tex.first_layer;
823 nlayers = surf->u.tex.last_layer - surf->u.tex.first_layer + 1;
826 zslice = surf->u.tex.first_layer;
832 surf, tex, surf->u.tex.level);
910 svga_surface_needs_propagation(const struct pipe_surface *surf)
912 const struct svga_surface *s = svga_surface_const(surf);
913 struct svga_texture *tex = svga_texture(surf->texture);