The deferred allocation doesn't really make much sense anymore, since we no
longer allocate swizzled/linear memory in chunks and not per level / slice
neither.
This means we could fail resource creation a bit more (could already fail in
theory anyway) but should not fail maps later (right now, callers can't deal
with neither really).
Reviewed-by: Brian Paul <brianp@vmware.com>
#endif
static unsigned id_counter = 0;
+static void
+alloc_image_data(struct llvmpipe_resource *lpr);
/**
* Conventional allocation path for non-display textures:
/* texture map */
if (!llvmpipe_texture_layout(screen, lpr))
goto fail;
+
+ alloc_image_data(lpr);
+ if (!lpr->tex_data) {
+ goto fail;
+ }
}
}
else {