diff options
author | Kenneth Graunke <[email protected]> | 2011-04-09 01:57:31 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2011-05-17 23:32:58 -0700 |
commit | 477e2fe0318c79978dedd51a5a6039cf05fc59fb (patch) | |
tree | 6950ce8ea6d1f5bed9155464e570be4cff0f81ff /src/mesa/drivers/dri | |
parent | 235fa21a0950150bcb78851e2d0cd2deeb1536f8 (diff) |
i965: Set maximum number of threads for Ivybridge.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_context.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c index a4e22776c0c..3a7e33145ba 100644 --- a/src/mesa/drivers/dri/i965/brw_context.c +++ b/src/mesa/drivers/dri/i965/brw_context.c @@ -178,7 +178,17 @@ GLboolean brwCreateContext( int api, } /* WM maximum threads is number of EUs times number of threads per EU. */ - if (intel->gen >= 6) { + if (intel->gen >= 7) { + if (IS_IVB_GT1(intel->intelScreen->deviceID)) { + brw->wm_max_threads = 86; + brw->vs_max_threads = 36; + } else if (IS_IVB_GT2(intel->intelScreen->deviceID)) { + brw->wm_max_threads = 86; + brw->vs_max_threads = 128; + } else { + assert(!"Unknown gen7 device."); + } + } else if (intel->gen == 6) { if (IS_GT2(intel->intelScreen->deviceID)) { /* This could possibly be 80, but is supposed to require * disabling of WIZ hashing (bit 6 of GT_MODE, 0x20d0) and a |