projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93ba005
)
i965: Set the maximum number of threads on Sandybridge.
author
Zhenyu Wang
<zhenyuw@linux.intel.com>
Fri, 20 Aug 2010 21:38:56 +0000
(14:38 -0700)
committer
Eric Anholt
<eric@anholt.net>
Fri, 20 Aug 2010 23:17:40 +0000
(16:17 -0700)
src/mesa/drivers/dri/i965/brw_context.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_context.c
b/src/mesa/drivers/dri/i965/brw_context.c
index 408fa0aeeaaf580a982046bc33d118db412618e1..d2b20165f9d49aae9dcb7e8ef74c8a976746c731 100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_context.c
+++ b/
src/mesa/drivers/dri/i965/brw_context.c
@@
-154,7
+154,11
@@
GLboolean brwCreateContext( int api,
}
/* WM maximum threads is number of EUs times number of threads per EU. */
- if (intel->gen == 5) {
+ if (intel->gen >= 6) {
+ brw->urb.size = 1024;
+ brw->vs_max_threads = 60;
+ brw->wm_max_threads = 80;
+ } else if (intel->gen == 5) {
brw->urb.size = 1024;
brw->vs_max_threads = 72;
brw->wm_max_threads = 12 * 6;