mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 18:58:10 +02:00
zink: set suballocator bo size to aligned allocation size
this is the actual memory size cc: mesa-stable Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13824>
This commit is contained in:
parent
eb6f1d5348
commit
97b92c9c32
1 changed files with 1 additions and 1 deletions
|
|
@ -278,7 +278,7 @@ bo_create_internal(struct zink_screen *screen,
|
|||
simple_mtx_init(&bo->lock, mtx_plain);
|
||||
pipe_reference_init(&bo->base.reference, 1);
|
||||
bo->base.alignment_log2 = util_logbase2(alignment);
|
||||
bo->base.size = size;
|
||||
bo->base.size = mai.allocationSize;
|
||||
bo->base.vtbl = &bo_vtbl;
|
||||
bo->base.placement = vk_domain_from_heap(heap);
|
||||
bo->base.usage = flags;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue