util/u_queue: track job size and limit the size of queue growth
[mesa.git] / src / util / disk_cache.c
index ed2e437a159cb8d2353511005d2e360f10323d96..46124b39c4c28f1efac00ce2a937a7f56d4842b9 100644 (file)
@@ -1037,7 +1037,7 @@ disk_cache_put(struct disk_cache *cache, const cache_key key,
    if (dc_job) {
       util_queue_fence_init(&dc_job->fence);
       util_queue_add_job(&cache->cache_queue, dc_job, &dc_job->fence,
-                         cache_put, destroy_put_job);
+                         cache_put, destroy_put_job, 0);
    }
 }