Lines Matching refs:rsc
45 struct etna_resource *rsc = etna_resource(prsc); in etna_create_surface() local
54 assert(layer < rsc->base.array_size); in etna_create_surface()
59 pipe_resource_reference(&surf->base.texture, &rsc->base); in etna_create_surface()
69 !rsc->ts_bo && in etna_create_surface()
70 (rsc->levels[level].padded_width & ETNA_RS_WIDTH_MASK) == 0 && in etna_create_surface()
71 (rsc->levels[level].padded_height & ETNA_RS_HEIGHT_MASK) == 0) { in etna_create_surface()
72 etna_screen_resource_alloc_ts(pctx->screen, rsc); in etna_create_surface()
75 surf->base.texture = &rsc->base; in etna_create_surface()
76 surf->base.format = rsc->base.format; in etna_create_surface()
77 surf->base.width = rsc->levels[level].width; in etna_create_surface()
78 surf->base.height = rsc->levels[level].height; in etna_create_surface()
82 surf->level = &rsc->levels[level]; /* Keep pointer to actual level to set in etna_create_surface()
85 surf->surf = rsc->levels [level]; /* Make copy of level to narrow down in etna_create_surface()
91 struct etna_resource_level *lev = &rsc->levels[level]; in etna_create_surface()
95 surf->reloc[pipe].bo = rsc->bo; in etna_create_surface()
104 if (rsc->layout & ETNA_LAYOUT_BIT_MULTI) in etna_create_surface()
115 surf->ts_reloc.bo = rsc->ts_bo; in etna_create_surface()