Searched refs:nresource (Results 1 – 2 of 2) sorted by relevance
101 struct noop_resource *nresource; in noop_resource_create() local104 nresource = CALLOC_STRUCT(noop_resource); in noop_resource_create()105 if (!nresource) in noop_resource_create()109 nresource->base = *templ; in noop_resource_create()110 nresource->base.screen = screen; in noop_resource_create()111 nresource->size = stride * templ->height0 * templ->depth0; in noop_resource_create()112 nresource->data = MALLOC(nresource->size); in noop_resource_create()113 pipe_reference_init(&nresource->base.reference, 1); in noop_resource_create()114 if (nresource->data == NULL) { in noop_resource_create()115 FREE(nresource); in noop_resource_create()[all …]
237 unsigned nresource; member