Mesa (master): llvmpipe: Disable multithreading on windows.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Fri Feb 5 13:56:28 UTC 2010


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

Author: José Fonseca <jfonseca at vmware.com>
Date:   Fri Feb  5 13:56:01 2010 +0000

llvmpipe: Disable multithreading on windows.

---

 src/gallium/drivers/llvmpipe/lp_rast.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_rast.c b/src/gallium/drivers/llvmpipe/lp_rast.c
index 54af850..cee20d8 100644
--- 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++) {




More information about the mesa-commit mailing list