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:
parent
ba6d389fa7
commit
eb6f1d5348
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue