Lines Matching refs:resource
254 * Get a pipe_surface "view" into a texture resource.
304 * a resource object.
306 * \param resource the resource to transfer in/out of
313 struct pipe_resource *resource,
318 struct softpipe_resource *spr = softpipe_resource(resource);
321 assert(resource);
322 assert(level <= resource->last_level);
325 assert(box->x + box->width <= u_minify(resource->width0, level));
326 if (resource->target == PIPE_TEXTURE_1D_ARRAY) {
327 assert(box->y + box->height <= resource->array_size);
330 assert(box->y + box->height <= u_minify(resource->height0, level));
331 if (resource->target == PIPE_TEXTURE_2D_ARRAY) {
332 assert(box->z + box->depth <= resource->array_size);
334 else if (resource->target == PIPE_TEXTURE_CUBE) {
338 assert(box->z + box->depth <= (u_minify(resource->depth0, level)));
349 if (!softpipe_flush_resource(pipe, resource,
366 enum pipe_format format = resource->format;
370 pipe_resource_reference(&pt->resource, resource);
397 pipe_resource_reference(&transfer->resource, NULL);
410 struct softpipe_resource *spr = softpipe_resource(transfer->resource);
439 assert(transfer->resource);
440 spr = softpipe_resource(transfer->resource);