projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e95e5ca
)
llvmpipe: Disable multithreading on windows.
author
José Fonseca
<jfonseca@vmware.com>
Fri, 5 Feb 2010 13:56:01 +0000
(13:56 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Fri, 5 Feb 2010 13:56:01 +0000
(13:56 +0000)
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 54af850467ae89d59466814d8ad14fc60f2bd3d5..cee20d8c68725c518ac90490187fb0586cb91572 100644
(file)
--- a/
src/gallium/drivers/llvmpipe/lp_rast.c
+++ b/
src/gallium/drivers/llvmpipe/lp_rast.c
@@
-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++) {