Lines Matching refs:prsc
63 struct pipe_resource *prsc = ptrans->resource; in etna_patch_data() local
64 struct etna_resource *rsc = etna_resource(prsc); in etna_patch_data()
67 if (likely(!etna_etc2_needs_patching(prsc))) in etna_patch_data()
79 prsc->format, level->patch_offsets); in etna_patch_data()
89 struct pipe_resource *prsc = ptrans->resource; in etna_unpatch_data() local
90 struct etna_resource *rsc = etna_resource(prsc); in etna_unpatch_data()
191 etna_transfer_map(struct pipe_context *pctx, struct pipe_resource *prsc, in etna_transfer_map() argument
199 struct etna_resource *rsc = etna_resource(prsc); in etna_transfer_map()
202 enum pipe_format format = prsc->format; in etna_transfer_map()
215 (prsc->target == PIPE_BUFFER) && in etna_transfer_map()
228 prsc->last_level == 0 && in etna_transfer_map()
229 prsc->width0 == box->width && in etna_transfer_map()
230 prsc->height0 == box->height && in etna_transfer_map()
231 prsc->depth0 == box->depth && in etna_transfer_map()
232 prsc->array_size == 1) { in etna_transfer_map()
237 pipe_resource_reference(&ptrans->resource, prsc); in etna_transfer_map()
242 assert(level <= prsc->last_level); in etna_transfer_map()
262 etna_resource_hw_tileable(screen->specs.use_blt, prsc) && in etna_transfer_map()
277 if (prsc->depth0 > 1 && rsc->ts_bo) { in etna_transfer_map()
283 struct pipe_resource templ = *prsc; in etna_transfer_map()
416 if ((usage & PIPE_MAP_READ) && etna_etc2_needs_patching(prsc)) in etna_transfer_map()
435 etna_compute_offset(prsc->format, box, res_level->stride, in etna_transfer_map()