Lines Matching defs:view

92 /* Misnomer: Sampler view corresponds to textures, not samplers */
962 panfrost_update_sampler_view(struct panfrost_sampler_view *view,
984 /* Construct a synthetic sampler view so we can use our usual
985 * sampler view code for the actual descriptor packing.
990 struct panfrost_sampler_view view = {
1001 if (view.base.target == PIPE_BUFFER)
1002 view.base.target = PIPE_BUFFER;
1004 view.base.target = PIPE_TEXTURE_2D_ARRAY;
1006 panfrost_update_sampler_view(&view, &ctx->base);
1007 out[i] = view.bifrost_descriptor;
1632 struct panfrost_sampler_view *view)
1634 if (!view)
1637 struct pipe_sampler_view *pview = &view->base;
1641 panfrost_batch_add_bo(batch, view->state.bo, st);
1643 return view->state.gpu;
1746 panfrost_update_sampler_view(struct panfrost_sampler_view *view,
1749 struct panfrost_resource *rsrc = pan_resource(view->base.texture);
1750 if (view->texture_bo != rsrc->image.data.bo->ptr.gpu ||
1751 view->modifier != rsrc->image.layout.modifier) {
1752 panfrost_bo_unreference(view->state.bo);
1753 panfrost_create_sampler_view_bo(view, pctx, &rsrc->base);
1775 struct panfrost_sampler_view *view = ctx->sampler_views[stage][i];
1777 if (!view) {
1782 struct pipe_sampler_view *pview = &view->base;
1785 panfrost_update_sampler_view(view, &ctx->base);
1786 out[i] = view->bifrost_descriptor;
1789 panfrost_batch_add_bo(batch, view->state.bo, stage);
1797 struct panfrost_sampler_view *view = ctx->sampler_views[stage][i];
1799 if (!view) {
1804 panfrost_update_sampler_view(view, &ctx->base);
1806 trampolines[i] = panfrost_get_tex_desc(batch, stage, view);
4662 struct panfrost_sampler_view *view = (struct panfrost_sampler_view *) pview;
4665 panfrost_bo_unreference(view->state.bo);
4666 ralloc_free(view);