From: Kenneth Graunke Date: Fri, 2 Aug 2013 07:01:41 +0000 (-0700) Subject: i965: Initialize the maximum number of GS threads on Haswell. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9375c16e7247298ecef2ad0187b7782b13aba642;p=mesa.git 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 Reviewed-by: Paul Berry --- 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;