projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
730cd1b
)
llvmpipe: Disable threads by default on embedded.
author
José Fonseca
<jfonseca@vmware.com>
Wed, 10 Mar 2010 16:34:09 +0000
(16:34 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Wed, 31 Mar 2010 17:38:12 +0000
(18:38 +0100)
src/gallium/drivers/llvmpipe/lp_rast.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/llvmpipe/lp_rast.c
b/src/gallium/drivers/llvmpipe/lp_rast.c
index 8352f175598bd12c7552c6002f473cbe05fe40e1..e629a3e5f1f6a07ea4e21632cfbbcb3352283238 100644
(file)
--- 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