Lines Matching refs:resource
84 struct pipe_resource *resource = surf->texture;
86 /* If the resource has been drawn to, store tiles. */
87 swr_store_dirty_resource(pipe, resource, SWR_TILE_RESOLVED);
89 pipe_resource_reference(&resource, NULL);
96 struct pipe_resource *resource,
103 struct swr_resource *spr = swr_resource(resource);
105 enum pipe_format format = resource->format;
107 assert(resource);
108 assert(level <= resource->last_level);
113 swr_store_dirty_resource(pipe, resource, SWR_TILE_INVALID);
116 /* If resource is in use, finish fence before mapping.
129 swr_resource_unused(resource);
137 pipe_resource_reference(&pt->resource, resource);
184 assert(transfer->resource);
187 struct swr_resource *spr = swr_resource(transfer->resource);
220 assert(transfer->resource);
222 struct swr_resource *spr = swr_resource(transfer->resource);
235 pipe_resource_reference(&transfer->resource, NULL);
281 if (info.src.resource->nr_samples > 1 && info.dst.resource->nr_samples <= 1
282 && !util_format_is_depth_or_stencil(info.src.resource->format)
283 && !util_format_is_pure_integer(info.src.resource->format)) {
299 util_format_short_name(info.src.resource->format),
300 util_format_short_name(info.dst.resource->format));