Home | History | Annotate | Download | only in llvmpipe

Lines Matching refs:resource

41 /** List of resource references */
43 struct pipe_resource *resource[RESOURCE_REF_SZ];
226 debug_printf("resource %d: %p %dx%d sz %d\n",
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);
338 * Add a reference to a resource by the scene.
342 struct pipe_resource *resource,
348 /* Look at existing resource blocks:
353 /* Search for this resource:
356 if (ref->resource[i] == resource)
380 pipe_resource_reference(&ref->resource[ref->count++], resource);
381 scene->resource_reference_size += llvmpipe_resource_size(resource);
385 * next resource added which exceeds 64MB in referenced texture
397 * Does this scene have a reference to the given resource?
401 const struct pipe_resource *resource)
408 if (ref->resource[i] == resource)