Lines Matching defs:resource

60  *  1. if resource is a texture,
113 * - the resource is not referenced by the current cmdbuf
119 struct virgl_resource *res = virgl_resource(trans->base.resource);
160 struct virgl_resource *res = virgl_resource(xfer->base.resource);
182 * resource to finish unless synchronization is disabled.
200 /* When the resource is busy but its content can be discarded, we can
201 * replace its HW resource or use a staging buffer to avoid waiting.
223 /* Both map types have some costs. Do them only when the resource is
268 * either because the resource is busy, or because it will become busy due
271 * during which another unsynchronized map could write to the resource
286 /* transfer_get puts the resource into a maybe_busy state, so we will have
287 * to wait another time if we want to use that resource. */
301 /* Calculate the minimum size of the memory required to service a resource
310 struct pipe_resource *pres = vtransfer->base.resource;
344 struct virgl_resource *vres = virgl_resource(vtransfer->base.resource);
360 * resource offset and map address to point to the requested x coordinate
385 /* Mark as dirty, since we are updating the host side resource
386 * without going through the corresponding guest side resource, and
392 * possibly using a layout different from the layout of the resource,
414 assert(vtransfer->base.resource->target != PIPE_BUFFER);
472 /* count toward the staging resource size limit */
482 struct pipe_resource *resource,
491 struct virgl_resource *vres = virgl_resource(resource);
497 assert(resource->nr_samples <= 1);
499 /* If virgl resource was created using persistence and coherency flags,
503 * unmapping of a host blob resource from guest.
505 if (resource->flags & PIPE_RESOURCE_FLAG_MAP_PERSISTENT)
508 if (resource->flags & PIPE_RESOURCE_FLAG_MAP_COHERENT)
511 trans = virgl_resource_create_transfer(vctx, resource,
565 /* If we are doing a whole resource discard with a hw_res map, the buffer
573 * currently used for whole resource discards.
728 /* do not use winsys returns for guest storage info of classic resource */
742 /* assign blob resource a type in case it was created untyped */
800 struct pipe_resource *resource,
805 struct virgl_resource *vbuf = virgl_resource(resource);
821 u_default_buffer_subdata(pipe, resource, usage, offset, size, data);
872 pipe_resource_reference(&trans->base.resource, pres);
883 if (trans->base.resource->target != PIPE_TEXTURE_3D &&
884 trans->base.resource->target != PIPE_TEXTURE_CUBE &&
885 trans->base.resource->target != PIPE_TEXTURE_1D_ARRAY &&
886 trans->base.resource->target != PIPE_TEXTURE_2D_ARRAY &&
887 trans->base.resource->target != PIPE_TEXTURE_CUBE_ARRAY)
904 pipe_resource_reference(&trans->base.resource, NULL);
909 struct pipe_resource *resource)
912 struct virgl_resource *res = virgl_resource(resource);
923 struct pipe_resource *resource,
928 struct virgl_resource *res = virgl_resource(resource);