Commit 6f8d66be authored by Patrick Lerda's avatar Patrick Lerda Committed by repojohnray

WIP: lima: lima_ctx_buff_alloc quick fixup.

Signed-off-by: default avatarPatrick Lerda <patrick9876@free.fr>
parent dcad15ff
......@@ -77,13 +77,21 @@ lima_ctx_buff_alloc(struct lima_context *ctx, enum lima_ctx_buff buff,
cbs->size = align(size, 0x40);
if (uploader)
if (uploader) {
u_upload_alloc(ctx->uploader, 0, cbs->size, 0x40, &cbs->offset,
&cbs->res, &ret);
else
} else {
u_suballocator_alloc(ctx->suballocator, cbs->size, 0x10,
&cbs->offset, &cbs->res);
if (!cbs->res) {
u_upload_alloc(ctx->uploader, 0, cbs->size, 0x40, &cbs->offset,
&cbs->res, &ret);
}
}
assert(cbs->res);
return ret;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment