mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
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:
parent
e303898258
commit
9d30d82a9a
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue