mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-25 16:40:30 +01:00
disk_cache: Fail creation when cannot inizialize queue.
Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Fixes:e2c4435b07("util/disk_cache: add thread queue to disk cache") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8983> (cherry picked from commitc6731daa5e)
This commit is contained in:
parent
f41b4cafeb
commit
1852736ee3
2 changed files with 6 additions and 5 deletions
|
|
@ -6205,7 +6205,7 @@
|
|||
"description": "disk_cache: Fail creation when cannot inizialize queue.",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "e2c4435b078a1471b044219552873a54b1817bac"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -155,10 +155,11 @@ disk_cache_create(const char *gpu_name, const char *driver_id,
|
|||
* The queue will resize automatically when it's full, so adding new jobs
|
||||
* doesn't stall.
|
||||
*/
|
||||
util_queue_init(&cache->cache_queue, "disk$", 32, 4,
|
||||
UTIL_QUEUE_INIT_RESIZE_IF_FULL |
|
||||
UTIL_QUEUE_INIT_USE_MINIMUM_PRIORITY |
|
||||
UTIL_QUEUE_INIT_SET_FULL_THREAD_AFFINITY);
|
||||
if (!util_queue_init(&cache->cache_queue, "disk$", 32, 4,
|
||||
UTIL_QUEUE_INIT_RESIZE_IF_FULL |
|
||||
UTIL_QUEUE_INIT_USE_MINIMUM_PRIORITY |
|
||||
UTIL_QUEUE_INIT_SET_FULL_THREAD_AFFINITY))
|
||||
goto fail;
|
||||
|
||||
cache->path_init_failed = false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue