zink: block suballocator caching for swapchain/dmabuf images

these have pNext pointers which makes their memory uncacheable

cc: mesa-stable

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13824>
This commit is contained in:
Mike Blumenkrantz 2021-11-16 16:27:59 -05:00 committed by Marge Bot
parent ba6d389fa7
commit eb6f1d5348
1 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@ bo_create_internal(struct zink_screen *screen,
}
/* all non-suballocated bo can cache */
init_pb_cache = true;
init_pb_cache = !pNext;
bo = CALLOC(1, sizeof(struct zink_bo) + init_pb_cache * sizeof(struct pb_cache_entry));
if (!bo) {