summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2010-03-10 16:34:09 +0000
committerJosé Fonseca <jfonseca@vmware.com>2010-03-31 18:38:12 +0100
commite1c1911435dcab9436f1d204043124f4b1506a1e (patch)
tree1b05cc2c384fb7b633f68c733367f194ea37d222 /src/gallium
parent730cd1baaa301dbdff60ce2867c920d3b52b2111 (diff)
downloadexternal_mesa3d-e1c1911435dcab9436f1d204043124f4b1506a1e.zip
external_mesa3d-e1c1911435dcab9436f1d204043124f4b1506a1e.tar.gz
external_mesa3d-e1c1911435dcab9436f1d204043124f4b1506a1e.tar.bz2
llvmpipe: Disable threads by default on embedded.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_rast.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_rast.c b/src/gallium/drivers/llvmpipe/lp_rast.c
index 8352f17..e629a3e 100644
--- a/src/gallium/drivers/llvmpipe/lp_rast.c
+++ b/src/gallium/drivers/llvmpipe/lp_rast.c
@@ -769,7 +769,11 @@ create_rast_threads(struct lp_rasterizer *rast)
* 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