i965: Update WM maximum threads for G4X.
authorEric Anholt <eric@anholt.net>
Mon, 3 Nov 2008 02:42:17 +0000 (18:42 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 12 Nov 2008 21:07:22 +0000 (13:07 -0800)
src/mesa/drivers/dri/i965/brw_wm_state.c

index 61fe97a4634bb615c339c0dc1c5f0b02c227fd15..fd461618bc446b8ec1a3d97610027bfec27941b5 100644 (file)
@@ -67,8 +67,13 @@ wm_unit_populate_key(struct brw_context *brw, struct brw_wm_unit_key *key)
 
    if (INTEL_DEBUG & DEBUG_SINGLE_THREAD)
       key->max_threads = 1;
-   else
-      key->max_threads = 32;
+   else {
+      /* WM maximum threads is number of EUs times number of threads per EU. */
+      if (BRW_IS_G4X(brw))
+        key->max_threads = 10 * 5;
+      else
+        key->max_threads = 8 * 4;
+   }
 
    /* CACHE_NEW_WM_PROG */
    key->total_grf = brw->wm.prog_data->total_grf;