mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 15:20:17 +01:00
freedreno/ir3: Reduce compiler thread pool size
With the current scheme, looking at game startup which should be the worst case (most heavily loaded) time for the compiler threads, and they seem to be ~10% busy. Furthermore we typically have a mix of "big" and "LITTLE" cores.. with about half being "big". So sizing the thread pool to the half the # of CPU cores seems reasonable. Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19387>
This commit is contained in:
parent
a6e4f8d03f
commit
e090e313fa
1 changed files with 1 additions and 1 deletions
|
|
@ -556,7 +556,7 @@ ir3_screen_init(struct pipe_screen *pscreen)
|
|||
* big cores. OTOH if they are sitting idle, maybe it is useful to
|
||||
* use them?
|
||||
*/
|
||||
unsigned num_threads = sysconf(_SC_NPROCESSORS_ONLN) - 1;
|
||||
unsigned num_threads = sysconf(_SC_NPROCESSORS_ONLN) / 2;
|
||||
|
||||
/* Create at least one thread - even on single core CPU systems. */
|
||||
num_threads = MAX2(1, num_threads);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue