mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 05:48:07 +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>
(cherry picked from commit 97b92c9c32)
This commit is contained in:
parent
a254750fbd
commit
39ad7f930a
2 changed files with 2 additions and 2 deletions
|
|
@ -2974,7 +2974,7 @@
|
|||
"description": "zink: set suballocator bo size to aligned allocation size",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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