zink: fix init with MESA_SHADER_CACHE_DISABLE enabled

Fixes: ba2f5cb20a ("zink: check for error when initializing util_queue")

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16533>
This commit is contained in:
Mike Blumenkrantz 2022-05-16 13:02:11 -04:00 committed by Marge Bot
parent e303898258
commit 9d30d82a9a

View file

@ -186,7 +186,7 @@ disk_cache_init(struct zink_screen *screen)
screen->disk_cache = disk_cache_create(buf, screen->info.props.deviceName, 0);
if (!screen->disk_cache)
return false;
return true;
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,