• Home
  • Raw
  • Download

Lines Matching refs:prsc

165    struct pipe_resource *prsc = &rsc->base;  in setup_miptree()  local
167 unsigned width = prsc->width0; in setup_miptree()
168 unsigned height = prsc->height0; in setup_miptree()
169 unsigned depth = prsc->depth0; in setup_miptree()
171 for (level = 0; level <= prsc->last_level; level++) { in setup_miptree()
179 mip->stride = util_format_get_stride(prsc->format, mip->padded_width); in setup_miptree()
181 mip->layer_stride = mip->stride * util_format_get_nblocksy(prsc->format, mip->padded_height); in setup_miptree()
182 mip->size = prsc->array_size * mip->layer_stride; in setup_miptree()
448 etna_resource_changed(struct pipe_screen *pscreen, struct pipe_resource *prsc) in etna_resource_changed() argument
450 etna_resource(prsc)->seqno++; in etna_resource_changed()
454 etna_resource_destroy(struct pipe_screen *pscreen, struct pipe_resource *prsc) in etna_resource_destroy() argument
456 struct etna_resource *rsc = etna_resource(prsc); in etna_resource_destroy()
493 struct pipe_resource *prsc; in etna_resource_from_handle() local
506 prsc = &rsc->base; in etna_resource_from_handle()
508 *prsc = *tmpl; in etna_resource_from_handle()
510 pipe_reference_init(&prsc->reference, 1); in etna_resource_from_handle()
512 prsc->screen = pscreen; in etna_resource_from_handle()
539 level->layer_stride = level->stride * util_format_get_nblocksy(prsc->format, in etna_resource_from_handle()
565 return prsc; in etna_resource_from_handle()
568 etna_resource_destroy(pscreen, prsc); in etna_resource_from_handle()
576 struct pipe_resource *prsc, in etna_resource_get_handle() argument
579 struct etna_resource *rsc = etna_resource(prsc); in etna_resource_get_handle()
605 etna_resource_used(struct etna_context *ctx, struct pipe_resource *prsc, in etna_resource_used() argument
611 if (!prsc) in etna_resource_used()
616 rsc = etna_resource(prsc); in etna_resource_used()
672 pipe_resource_reference(&referenced, prsc); in etna_resource_used()