Home | History | Annotate | Download | only in util

Lines Matching refs:us

47 util_surfaces_do_get(struct util_surfaces *us, unsigned surface_struct_size,
54 util_surfaces_get(struct util_surfaces *us, unsigned surface_struct_size,
59 if(likely((pt->target == PIPE_TEXTURE_2D || pt->target == PIPE_TEXTURE_RECT) && us->u.array))
61 struct pipe_surface *ps = us->u.array[level];
70 return util_surfaces_do_get(us, surface_struct_size, ctx, pt, level, layer, flags, res);
74 util_surfaces_peek(struct util_surfaces *us, struct pipe_resource *pt, unsigned level, unsigned layer)
76 if(!us->u.pv)
80 return cso_hash_iter_data(cso_hash_find(us->u.hash, (layer << 8) | level));
82 return us->u.array[level];
85 void util_surfaces_do_detach(struct util_surfaces *us, struct pipe_surface *ps);
88 util_surfaces_detach(struct util_surfaces *us, struct pipe_surface *ps)
92 us->u.array[ps->u.tex.level] = 0;
96 util_surfaces_do_detach(us, ps);
99 void util_surfaces_destroy(struct util_surfaces *us, struct pipe_resource *pt, void (*destroy_surface) (struct pipe_surface *));