Lines Matching defs:view
743 struct pipe_sampler_view *view = views[i];
744 pipe_sampler_view_reference(&view, NULL);
773 struct pipe_sampler_view *view = CALLOC_STRUCT(pipe_sampler_view);
775 if (view) {
776 *view = *templ;
777 view->reference.count = 1;
778 view->texture = NULL;
779 pipe_resource_reference(&view->texture, texture);
780 view->context = pipe;
783 return view;
791 struct pipe_sampler_view *view = CALLOC_STRUCT(pipe_sampler_view);
793 if (view) {
794 *view = *templ;
795 view->reference.count = 1;
796 view->texture = NULL;
797 pipe_resource_reference(&view->texture, texture);
798 view->context = pipe;
801 return view;
806 struct pipe_sampler_view *view)
808 pipe_resource_reference(&view->texture, NULL);
809 FREE(view);