mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 17:20:21 +01:00
llvmpipe: compute shaders work better with all the threads.
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:1b24e3ba75(llvmpipe: add compute threadpool + mutex) Reviewed-by: Roland Scheidegger <sroland@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5138> (cherry picked from commit22554e1fbc)
This commit is contained in:
parent
0e9812d0ec
commit
a771dd8f25
2 changed files with 2 additions and 2 deletions
|
|
@ -2704,7 +2704,7 @@
|
|||
"description": "llvmpipe: compute shaders work better with all the threads.",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "1b24e3ba756ba4951086d0b1b351364acbd3af1d"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -137,7 +137,7 @@ lp_cs_tpool_queue_task(struct lp_cs_tpool *pool,
|
|||
|
||||
list_addtail(&task->list, &pool->workqueue);
|
||||
|
||||
cnd_signal(&pool->new_work);
|
||||
cnd_broadcast(&pool->new_work);
|
||||
mtx_unlock(&pool->m);
|
||||
return task;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue