mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-02 09:08:18 +02:00
llvmpipe: Disable threads by default on embedded.
This commit is contained in:
parent
730cd1baaa
commit
e1c1911435
1 changed files with 4 additions and 0 deletions
|
|
@ -768,8 +768,12 @@ create_rast_threads(struct lp_rasterizer *rast)
|
|||
/* Multithreading not supported on windows until conditions and barriers are
|
||||
* properly implemented. */
|
||||
rast->num_threads = 0;
|
||||
#else
|
||||
#ifdef PIPE_OS_EMBEDDED
|
||||
rast->num_threads = 0;
|
||||
#else
|
||||
rast->num_threads = util_cpu_caps.nr_cpus;
|
||||
#endif
|
||||
rast->num_threads = debug_get_num_option("LP_NUM_THREADS", rast->num_threads);
|
||||
rast->num_threads = MIN2(rast->num_threads, MAX_THREADS);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue