From e1c1911435dcab9436f1d204043124f4b1506a1e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Wed, 10 Mar 2010 16:34:09 +0000 Subject: [PATCH] llvmpipe: Disable threads by default on embedded. --- src/gallium/drivers/llvmpipe/lp_rast.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gallium/drivers/llvmpipe/lp_rast.c b/src/gallium/drivers/llvmpipe/lp_rast.c index 8352f175598..e629a3e5f1f 100644 --- a/src/gallium/drivers/llvmpipe/lp_rast.c +++ b/src/gallium/drivers/llvmpipe/lp_rast.c @@ -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 -- 2.30.2