Lines Matching refs:resource
39 struct pipe_resource *resource) in galahad_resource_create() argument
43 if(!resource) in galahad_resource_create()
46 assert(resource->screen == glhd_screen->screen); in galahad_resource_create()
52 memcpy(&glhd_resource->base, resource, sizeof(struct pipe_resource)); in galahad_resource_create()
56 glhd_resource->resource = resource; in galahad_resource_create()
61 pipe_resource_reference(&resource, NULL); in galahad_resource_create()
68 pipe_resource_reference(&glhd_resource->resource, NULL); in galahad_resource_destroy()
83 assert(surface->texture == glhd_resource->resource); in galahad_surface_create()
123 assert(view->texture == glhd_resource->resource); in galahad_sampler_view_create()
159 assert(transfer->resource == glhd_resource->resource); 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()
184 pipe_resource_reference(&glhd_transfer->base.resource, NULL); in galahad_transfer_destroy()