Module: Mesa Branch: main Commit: ea92421298140b96970a4885e791ed0d15a5f091 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ea92421298140b96970a4885e791ed0d15a5f091
Author: Mike Blumenkrantz <[email protected]> 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 <[email protected]> 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);
