Lines Matching refs:nresource
102 struct noop_resource *nresource; in noop_resource_create() local
105 nresource = CALLOC_STRUCT(noop_resource); in noop_resource_create()
106 if (!nresource) in noop_resource_create()
110 nresource->base = *templ; in noop_resource_create()
111 nresource->base.screen = screen; in noop_resource_create()
112 nresource->size = stride * templ->height0 * templ->depth0; in noop_resource_create()
113 nresource->data = MALLOC(nresource->size); in noop_resource_create()
114 pipe_reference_init(&nresource->base.reference, 1); in noop_resource_create()
115 if (nresource->data == NULL) { in noop_resource_create()
116 FREE(nresource); in noop_resource_create()
119 return &nresource->base; in noop_resource_create()
162 struct noop_resource *nresource = (struct noop_resource *)resource; in noop_resource_destroy() local
164 FREE(nresource->data); in noop_resource_destroy()
180 struct noop_resource *nresource = (struct noop_resource *)resource; in noop_transfer_map() local
193 return nresource->data; in noop_transfer_map()