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:
Mike Blumenkrantz 2021-11-16 17:19:43 -05:00 committed by Eric Engestrom
parent a254750fbd
commit 39ad7f930a
2 changed files with 2 additions and 2 deletions

View file

@ -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
},

View file

@ -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;