zink: scale number of shader cache-get threads

this should improve startup times for short tests

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17659>
This commit is contained in:
Mike Blumenkrantz 2022-07-20 12:55:52 -04:00 committed by Marge Bot
parent 153983328d
commit ea92421298
1 changed files with 1 additions and 1 deletions

View File

@ -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);