Module: Mesa Branch: main Commit: 97b92c9c32a508b9aa85458661b762ffde1c590a URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=97b92c9c32a508b9aa85458661b762ffde1c590a
Author: Mike Blumenkrantz <[email protected]> Date: Tue Nov 16 17:19:43 2021 -0500 zink: set suballocator bo size to aligned allocation size this is the actual memory size cc: mesa-stable Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13824> --- src/gallium/drivers/zink/zink_bo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_bo.c b/src/gallium/drivers/zink/zink_bo.c index b5c815de033..cf93a2e1e13 100644 --- a/src/gallium/drivers/zink/zink_bo.c +++ b/src/gallium/drivers/zink/zink_bo.c @@ -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;
