i965: Initialize the maximum number of GS threads on Haswell.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 2 Aug 2013 07:01:41 +0000 (00:01 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 2 Aug 2013 15:24:23 +0000 (08:24 -0700)
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 <kenneth@whitecape.org>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/brw_context.c

index a72e2269fbf97709796a56d7b63c18c79e1b3dd2..1669a2330a40277f3e88835f71ca8f8f26960853 100644 (file)
@@ -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;