llvmpipe: compute shaders work better with all the threads.
authorDave Airlie <airlied@redhat.com>
Thu, 21 May 2020 03:38:03 +0000 (13:38 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 21 May 2020 04:10:41 +0000 (14:10 +1000)
commit22554e1fbc20d0f642e952fda13d8f2631a898eb
tree67b81444f91e6fe3e7268770b50281fb593483bc
parent02a1f95386b43bf46cd1c8297d0955242f554fa2
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: 1b24e3ba756b (llvmpipe: add compute threadpool + mutex)
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5138>
src/gallium/drivers/llvmpipe/lp_cs_tpool.c