Mesa (main): zink: set suballocator bo size to aligned allocation size
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Nov 16 22:57:23 UTC 2021
Module: Mesa
Branch: main
Commit: 97b92c9c32a508b9aa85458661b762ffde1c590a
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=97b92c9c32a508b9aa85458661b762ffde1c590a
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
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 <airlied at redhat.com>
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;
More information about the mesa-commit
mailing list