Lines Matching refs:ps
38 struct pipe_surface *ps; in util_surfaces_do_get() local
45 ps = cso_hash_iter_data(cso_hash_find(us->u.hash, (layer << 8) | level)); in util_surfaces_do_get()
51 ps = us->u.array[level]; in util_surfaces_do_get()
54 if(ps && ps->context == ctx) in util_surfaces_do_get()
56 p_atomic_inc(&ps->reference.count); in util_surfaces_do_get()
57 *res = ps; in util_surfaces_do_get()
61 ps = (struct pipe_surface *)CALLOC(1, surface_struct_size); in util_surfaces_do_get()
62 if(!ps) in util_surfaces_do_get()
68 pipe_surface_init(ctx, ps, pt, level, layer, flags); in util_surfaces_do_get()
71 cso_hash_insert(us->u.hash, (layer << 8) | level, ps); in util_surfaces_do_get()
73 us->u.array[level] = ps; in util_surfaces_do_get()
75 *res = ps; in util_surfaces_do_get()
80 util_surfaces_do_detach(struct util_surfaces *us, struct pipe_surface *ps) in util_surfaces_do_detach() argument
82 struct pipe_resource *pt = ps->texture; in util_surfaces_do_detach()
85 …cso_hash_erase(us->u.hash, cso_hash_find(us->u.hash, (ps->u.tex.first_layer << 8) | ps->u.tex.leve… in util_surfaces_do_detach()
88 us->u.array[ps->u.tex.level] = 0; in util_surfaces_do_detach()
116 struct pipe_surface *ps = us->u.array[i]; in util_surfaces_destroy() local
117 if(ps) in util_surfaces_destroy()
118 destroy_surface(ps); in util_surfaces_destroy()