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:
parent
153983328d
commit
ea92421298
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue