Mesa (master): i965: Set the maximum number of threads on Sandybridge.

Eric Anholt anholt at kemper.freedesktop.org
Fri Aug 20 23:18:22 UTC 2010


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

Author: Zhenyu Wang <zhenyuw at linux.intel.com>
Date:   Fri Aug 20 14:38:56 2010 -0700

i965: Set the maximum number of threads on Sandybridge.

---

 src/mesa/drivers/dri/i965/brw_context.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
index 408fa0a..d2b2016 100644
--- 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;




More information about the mesa-commit mailing list