I got to benchmarking some vulkan compute benchmark and wondered
why my CPUs weren't being saturated, helps if you actually wake up
all the threads in the threadpool.
Fixes: 1b24e3ba756b (llvmpipe: add compute threadpool + mutex)
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5138>
list_addtail(&task->list, &pool->workqueue);
- cnd_signal(&pool->new_work);
+ cnd_broadcast(&pool->new_work);
mtx_unlock(&pool->m);
return task;
}