intel: increase wm thread number to 80 on gen6 GT2
authorZou Nan hai <nanhai.zou@intel.com>
Thu, 26 Jul 2012 22:04:02 +0000 (06:04 +0800)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 27 Jul 2012 17:32:17 +0000 (10:32 -0700)
It seems reset is not required for setting the max_wm_threads to 80
on gen6 GT2.

Increases performance in the Counter-Strike: Source video stress test
by 7.18% (n=5).

Signed-off-by: Zou Nan hai <nanhai.zou@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Tested-by: Matt Turner <mattst88@gmail.com>
Acked-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_context.c

index faca7267190b72d9a23f816b5c276ebf0683d635..e23e22443bbb8ec3c20a54eaba844842a588c94c 100644 (file)
@@ -256,11 +256,7 @@ brwCreateContext(int api,
       }
    } else if (intel->gen == 6) {
       if (intel->gt == 2) {
-        /* This could possibly be 80, but is supposed to require
-         * disabling of WIZ hashing (bit 6 of GT_MODE, 0x20d0) and a
-         * GPU reset to change.
-         */
-        brw->max_wm_threads = 40;
+        brw->max_wm_threads = 80;
         brw->max_vs_threads = 60;
         brw->max_gs_threads = 60;
         brw->urb.size = 64;            /* volume 5c.5 section 5.1 */