Mesa (main): zink: scale number of shader cache-get threads

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jul 20 18:36:28 UTC 2022


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

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Wed Jul 20 12:55:52 2022 -0400

zink: scale number of shader cache-get threads

this should improve startup times for short tests

Reviewed-by: Adam Jackson <ajax at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17659>

---

 src/gallium/drivers/zink/zink_screen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/zink/zink_screen.c b/src/gallium/drivers/zink/zink_screen.c
index 16852559483..f5a54361ca9 100644
--- a/src/gallium/drivers/zink/zink_screen.c
+++ b/src/gallium/drivers/zink/zink_screen.c
@@ -193,7 +193,7 @@ disk_cache_init(struct zink_screen *screen)
 
    if (!util_queue_init(&screen->cache_put_thread, "zcq", 8, 1, UTIL_QUEUE_INIT_RESIZE_IF_FULL, screen) ||
       !util_queue_init(&screen->cache_get_thread, "zcfq", 8, 4,
-         UTIL_QUEUE_INIT_RESIZE_IF_FULL, screen)) {
+         UTIL_QUEUE_INIT_RESIZE_IF_FULL | UTIL_QUEUE_INIT_SCALE_THREADS, screen)) {
       mesa_loge("zink: Failed to create disk cache queue\n");
 
       disk_cache_destroy(screen->disk_cache);



More information about the mesa-commit mailing list