Searched refs:nresource (Results 1 – 2 of 2) sorted by relevance
94 struct noop_resource *nresource; in noop_resource_create() local97 nresource = CALLOC_STRUCT(noop_resource); in noop_resource_create()98 if (nresource == NULL) in noop_resource_create()102 nresource->base = *templ; in noop_resource_create()103 nresource->base.screen = screen; in noop_resource_create()104 nresource->size = stride * templ->height0 * templ->depth0; in noop_resource_create()105 nresource->data = MALLOC(nresource->size); in noop_resource_create()106 pipe_reference_init(&nresource->base.reference, 1); in noop_resource_create()107 if (nresource->data == NULL) { in noop_resource_create()108 FREE(nresource); in noop_resource_create()[all …]
208 unsigned nresource; member