projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
903a66a
)
llvmpipe: Default to no threading on single processor systems.
author
José Fonseca
<jfonseca@vmware.com>
Thu, 16 Sep 2010 19:27:13 +0000
(20:27 +0100)
committer
José Fonseca
<jfonseca@vmware.com>
Fri, 17 Sep 2010 18:18:43 +0000
(19:18 +0100)
src/gallium/drivers/llvmpipe/lp_screen.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/llvmpipe/lp_screen.c
b/src/gallium/drivers/llvmpipe/lp_screen.c
index c66313f0ed847d9b6f61a1a4b5f7419099b3f109..96633d93654df5c5faf1ee08f175043e35780e6d 100644
(file)
--- a/
src/gallium/drivers/llvmpipe/lp_screen.c
+++ b/
src/gallium/drivers/llvmpipe/lp_screen.c
@@
-412,10
+412,9
@@
llvmpipe_create_screen(struct sw_winsys *winsys)
lp_jit_screen_init(screen);
+ screen->num_threads = util_cpu_caps.nr_cpus > 1 ? util_cpu_caps.nr_cpus : 0;
#ifdef PIPE_OS_EMBEDDED
screen->num_threads = 0;
-#else
- screen->num_threads = util_cpu_caps.nr_cpus;
#endif
screen->num_threads = debug_get_num_option("LP_NUM_THREADS", screen->num_threads);
screen->num_threads = MIN2(screen->num_threads, LP_MAX_THREADS);