Home | History | Annotate | Download | only in llvmpipe

Lines Matching refs:ref

217    /* Decrement texture ref counts
220 struct resource_ref *ref;
223 for (ref = scene->resources; ref; ref = ref->next) {
224 for (i = 0; i < ref->count; i++) {
228 (void *) ref->resource[i],
229 ref->resource[i]->width0,
230 ref->resource[i]->height0,
231 llvmpipe_resource_size(ref->resource[i]));
233 pipe_resource_reference(&ref->resource[i], NULL);
345 struct resource_ref *ref, **last = &scene->resources;
350 for (ref = scene->resources; ref; ref = ref->next) {
351 last = &ref->next;
355 for (i = 0; i < ref->count; i++)
356 if (ref->resource[i] == resource)
359 if (ref->count < RESOURCE_REF_SZ) {
368 if (!ref) {
370 *last = lp_scene_alloc(scene, sizeof *ref);
374 ref = *last;
375 memset(ref, 0, sizeof *ref);
380 pipe_resource_reference(&ref->resource[ref->count++], resource);
403 const struct resource_ref *ref;
406 for (ref = scene->resources; ref; ref = ref->next) {
407 for (i = 0; i < ref->count; i++)
408 if (ref->resource[i] == resource)