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