i965: Fix max_wm_threads for CHV
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 19 Jan 2015 14:08:31 +0000 (16:08 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 23 Jan 2015 10:09:35 +0000 (12:09 +0200)
Change max_wm_threads to match the spec on CHV. The max number of
threads in 3DSTATE_PS is always programmed to 64 and the hardware
internally scales that depending on the GT SKU. So this doesn't
change the max number of threads actually used, but it does affect
the scratch space calculation.

On CHV the old value was too small, so the amount of scratch space
allocated wasn't sufficient to satisfy the actual max number of
threads used.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
src/mesa/drivers/dri/i965/brw_device_info.c

index 65942c2..8c180a8 100644 (file)
@@ -239,7 +239,7 @@ static const struct brw_device_info brw_device_info_chv = {
    .has_llc = false,
    .max_vs_threads = 80,
    .max_gs_threads = 80,
-   .max_wm_threads = 102,
+   .max_wm_threads = 128,
    .urb = {
       .size = 128,
       .min_vs_entries = 64,