aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2013-08-02 00:01:41 -0700
committerKenneth Graunke <[email protected]>2013-08-02 08:24:23 -0700
commit9375c16e7247298ecef2ad0187b7782b13aba642 (patch)
treeafe724f6c011e421e52cfa55b2c8ff6cd63822f1
parenta1ddbd1d7cb7ba5160f968d42219d9cdd1034ed4 (diff)
i965: Initialize the maximum number of GS threads on Haswell.
We'll need proper values for max_gs_threads when we eventually support geometry shaders. Also, we initialize it for every other platform. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Paul Berry <[email protected]>
-rw-r--r--src/mesa/drivers/dri/i965/brw_context.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
index a72e2269fbf..1669a2330a4 100644
--- a/src/mesa/drivers/dri/i965/brw_context.c
+++ b/src/mesa/drivers/dri/i965/brw_context.c
@@ -359,18 +359,21 @@ brwCreateContext(int api,
if (brw->gt == 1) {
brw->max_wm_threads = 102;
brw->max_vs_threads = 70;
+ brw->max_gs_threads = 70;
brw->urb.size = 128;
brw->urb.max_vs_entries = 640;
brw->urb.max_gs_entries = 256;
} else if (brw->gt == 2) {
brw->max_wm_threads = 204;
brw->max_vs_threads = 280;
+ brw->max_gs_threads = 256;
brw->urb.size = 256;
brw->urb.max_vs_entries = 1664;
brw->urb.max_gs_entries = 640;
} else if (brw->gt == 3) {
brw->max_wm_threads = 408;
brw->max_vs_threads = 280;
+ brw->max_gs_threads = 256;
brw->urb.size = 512;
brw->urb.max_vs_entries = 1664;
brw->urb.max_gs_entries = 640;