Lines Matching refs:base

52    memcpy(&glhd_resource->base, resource, sizeof(struct pipe_resource));  in galahad_resource_create()
54 pipe_reference_init(&glhd_resource->base.reference, 1); in galahad_resource_create()
55 glhd_resource->base.screen = &glhd_screen->base; in galahad_resource_create()
58 return &glhd_resource->base; in galahad_resource_create()
89 memcpy(&glhd_surface->base, surface, sizeof(struct pipe_surface)); in galahad_surface_create()
91 pipe_reference_init(&glhd_surface->base.reference, 1); in galahad_surface_create()
92 glhd_surface->base.texture = NULL; in galahad_surface_create()
93 pipe_resource_reference(&glhd_surface->base.texture, &glhd_resource->base); in galahad_surface_create()
96 return &glhd_surface->base; in galahad_surface_create()
107 pipe_resource_reference(&glhd_surface->base.texture, NULL); in galahad_surface_destroy()
127 glhd_view->base = *view; in galahad_sampler_view_create()
128 glhd_view->base.reference.count = 1; in galahad_sampler_view_create()
129 glhd_view->base.texture = NULL; in galahad_sampler_view_create()
130 pipe_resource_reference(&glhd_view->base.texture, &glhd_resource->base); in galahad_sampler_view_create()
131 glhd_view->base.context = &glhd_context->base; in galahad_sampler_view_create()
134 return &glhd_view->base; in galahad_sampler_view_create()
144 pipe_resource_reference(&glhd_view->base.texture, NULL); in galahad_sampler_view_destroy()
165 memcpy(&glhd_transfer->base, transfer, sizeof(struct pipe_transfer)); in galahad_transfer_create()
167 glhd_transfer->base.resource = NULL; in galahad_transfer_create()
170 pipe_resource_reference(&glhd_transfer->base.resource, &glhd_resource->base); in galahad_transfer_create()
171 assert(glhd_transfer->base.resource == &glhd_resource->base); in galahad_transfer_create()
173 return &glhd_transfer->base; in galahad_transfer_create()
184 pipe_resource_reference(&glhd_transfer->base.resource, NULL); in galahad_transfer_destroy()