Searched refs:nresource (Results 1 – 3 of 3) sorted by relevance
157 struct agx_resource *nresource; in agx_resource_create() local159 nresource = CALLOC_STRUCT(agx_resource); in agx_resource_create()160 if (!nresource) in agx_resource_create()163 nresource->base = *templ; in agx_resource_create()164 nresource->base.screen = screen; in agx_resource_create()166 nresource->modifier = agx_select_modifier(nresource); in agx_resource_create()167 nresource->mipmapped = (templ->last_level > 0); in agx_resource_create()168 nresource->internal_format = nresource->base.format; in agx_resource_create()177 if (nresource->modifier == DRM_FORMAT_MOD_APPLE_64X64_MORTON_ORDER) { in agx_resource_create()185 nresource->slices[l].line_stride = util_format_get_stride(templ->format, width); in agx_resource_create()[all …]
106 struct noop_resource *nresource; in noop_resource_create() local109 nresource = CALLOC_STRUCT(noop_resource); in noop_resource_create()110 if (!nresource) in noop_resource_create()114 nresource->b.b = *templ; in noop_resource_create()115 nresource->b.b.screen = screen; in noop_resource_create()116 nresource->size = stride * templ->height0 * templ->depth0; in noop_resource_create()117 nresource->data = MALLOC(nresource->size); in noop_resource_create()118 pipe_reference_init(&nresource->b.b.reference, 1); in noop_resource_create()119 if (nresource->data == NULL) { in noop_resource_create()120 FREE(nresource); in noop_resource_create()[all …]
269 unsigned nresource; member