mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-09 19:10:12 +01:00
llvmpipe: Disable multithreading on windows.
This commit is contained in:
parent
e95e5caee6
commit
ad60552ca1
1 changed files with 6 additions and 0 deletions
|
|
@ -939,9 +939,15 @@ create_rast_threads(struct lp_rasterizer *rast)
|
|||
{
|
||||
unsigned i;
|
||||
|
||||
#ifdef PIPE_OS_WINDOWS
|
||||
/* Multithreading not supported on windows until conditions and barriers are
|
||||
* properly implemented. */
|
||||
rast->num_threads = 0;
|
||||
#else
|
||||
rast->num_threads = util_cpu_caps.nr_cpus;
|
||||
rast->num_threads = debug_get_num_option("LP_NUM_THREADS", rast->num_threads);
|
||||
rast->num_threads = MIN2(rast->num_threads, MAX_THREADS);
|
||||
#endif
|
||||
|
||||
/* NOTE: if num_threads is zero, we won't use any threads */
|
||||
for (i = 0; i < rast->num_threads; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue