Module: Mesa
Branch: master
Commit: e1c1911435dcab9436f1d204043124f4b1506a1e
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=e1c1911435dcab9436f1d204043124f4b1506a1e

Author: José Fonseca <jfons...@vmware.com>
Date:   Wed Mar 10 16:34:09 2010 +0000

llvmpipe: Disable threads by default on embedded.

---

 src/gallium/drivers/llvmpipe/lp_rast.c |    4 ++++
 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

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to