Skip to content
Snippets Groups Projects
Commit b6499dff authored by Mike Blumenkrantz's avatar Mike Blumenkrantz :lifter: Committed by Marge Bot
Browse files

zink: use device-local heap for sparse backing allocations


backing allocations are real allocations, so they shouldn't be initialized
as sparse containers

Fixes: 40fdb321 ("zink: add a suballocator")

Reviewed-by: default avatarHoe Hao Cheng <haochengho12907@gmail.com>
Part-of: <mesa/mesa!14394>
parent f286ecf9
No related branches found
No related tags found
No related merge requests found
......@@ -357,7 +357,7 @@ sparse_backing_alloc(struct zink_screen *screen, struct zink_bo *bo,
size = MAX2(size, ZINK_SPARSE_BUFFER_PAGE_SIZE);
buf = zink_bo_create(screen, size, ZINK_SPARSE_BUFFER_PAGE_SIZE,
bo->base.placement, ZINK_ALLOC_NO_SUBALLOC, NULL);
ZINK_HEAP_DEVICE_LOCAL, ZINK_ALLOC_NO_SUBALLOC, NULL);
if (!buf) {
FREE(best_backing->chunks);
FREE(best_backing);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment