Mesa (main): zink: block suballocator caching for swapchain/dmabuf images

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Nov 16 22:57:23 UTC 2021


Module: Mesa
Branch: main
Commit: eb6f1d53482b83feb51dac0f0fffd4291b651848
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=eb6f1d53482b83feb51dac0f0fffd4291b651848

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Tue Nov 16 16:27:59 2021 -0500

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 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 8594e3be0bb..b5c815de033 100644
--- a/src/gallium/drivers/zink/zink_bo.c
+++ b/src/gallium/drivers/zink/zink_bo.c
@@ -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) {



More information about the mesa-commit mailing list