mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 22:08:26 +02:00
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>
(cherry picked from commit eb6f1d5348)
This commit is contained in:
parent
f4ebf9517f
commit
a254750fbd
2 changed files with 2 additions and 2 deletions
|
|
@ -2983,7 +2983,7 @@
|
|||
"description": "zink: block suballocator caching for swapchain/dmabuf images",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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…
Add table
Reference in a new issue