Lines Matching defs:resource
354 * For a resource we want to use AFBC with, should we use AFBC with tiled
454 /* We can only switch tiled->linear if the resource isn't already
645 (bind & PIPE_BIND_SHARED) ? "Shared resource" :
654 "Other resource";
667 /* Present a resource with similar dimensions that, if allocated
668 * as a linear image, is big enough to fit the resource in the
703 fprintf(stderr, "Failed to create scanout resource\n");
736 /* Default is to create a resource as don't care */
843 struct pipe_resource *dst = trans->base.resource;
846 blit.dst.resource = dst;
850 blit.src.resource = trans->staging.rsrc;
863 struct pipe_resource *src = trans->base.resource;
866 blit.src.resource = src;
870 blit.dst.resource = trans->staging.rsrc;
940 panfrost_box_covers_resource(const struct pipe_resource *resource,
943 return resource->last_level == 0 &&
944 util_texrange_covers_whole_level(resource, 0, box->x, box->y,
951 struct pipe_resource *resource,
959 struct panfrost_resource *rsrc = pan_resource(resource);
973 pipe_resource_reference(&transfer->base.resource, resource);
1018 /* Upgrade DISCARD_RANGE to WHOLE_RESOURCE if the whole resource is
1023 !(resource->flags & PIPE_RESOURCE_FLAG_MAP_PERSISTENT) &&
1024 panfrost_box_covers_resource(resource, box) &&
1036 !(resource->target == PIPE_BUFFER
1040 /* When a resource to be modified is already being used by a
1045 panfrost_flush_writer(ctx, rsrc, "Shadow resource creation");
1061 /* Make sure we re-emit any descriptors using this resource */
1104 && resource->target == PIPE_BUFFER
1188 .dst.resource = &tmp_rsrc->base,
1191 .src.resource = &rsrc->base,
1217 /* Validate that an AFBC resource may be used as a particular format. If it may
1248 /* Overwriting the entire resource indicates streaming, for which
1285 struct panfrost_resource *prsrc = (struct panfrost_resource *) transfer->resource;
1291 /* AFBC will use a staging resource. `initialized` will be set when the
1363 /* Derefence the resource */
1364 pipe_resource_reference(&transfer->resource, NULL);
1375 struct panfrost_resource *rsc = pan_resource(transfer->resource);
1377 if (transfer->resource->target == PIPE_BUFFER) {