Lines Matching defs:view
570 struct tegra_sampler_view *view;
575 view = to_tegra_sampler_view(pviews[i]);
576 if (view) {
577 view->refcount--;
578 if (!view->refcount) {
579 view->refcount = 100000000;
580 p_atomic_add(&view->gpu->reference.count, view->refcount);
845 struct tegra_sampler_view *view;
847 view = calloc(1, sizeof(*view));
848 if (!view)
851 view->base = *template;
852 view->base.context = pcontext;
854 view->base.texture = NULL;
855 pipe_reference_init(&view->base.reference, 1);
856 pipe_resource_reference(&view->base.texture, presource);
858 view->gpu = context->gpu->create_sampler_view(context->gpu, resource->gpu,
862 view->gpu->reference.count += 100000000;
863 view->refcount = 100000000;
865 return &view->base;
872 struct tegra_sampler_view *view = to_tegra_sampler_view(pview);
874 pipe_resource_reference(&view->base.texture, NULL);
876 p_atomic_add(&view->gpu->reference.count, -view->refcount);
877 pipe_sampler_view_reference(&view->gpu, NULL);
878 free(view);
1201 struct pipe_sampler_view *view,
1206 return context->gpu->create_texture_handle(context->gpu, view, state);