mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
lima: replace opencoded slab_zalloc
Acked-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15277>
This commit is contained in:
parent
38aad273aa
commit
06b72f1e1a
1 changed files with 1 additions and 2 deletions
|
|
@ -657,11 +657,10 @@ lima_transfer_map(struct pipe_context *pctx,
|
|||
if (!lima_bo_map(bo))
|
||||
return NULL;
|
||||
|
||||
trans = slab_alloc(&ctx->transfer_pool);
|
||||
trans = slab_zalloc(&ctx->transfer_pool);
|
||||
if (!trans)
|
||||
return NULL;
|
||||
|
||||
memset(trans, 0, sizeof(*trans));
|
||||
ptrans = &trans->base;
|
||||
|
||||
pipe_resource_reference(&ptrans->resource, pres);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue