Mesa (10.4): i965: Fix max_wm_threads for CHV

Emil Velikov evelikov at kemper.freedesktop.org
Wed Feb 4 01:51:52 UTC 2015


Module: Mesa
Branch: 10.4
Commit: cc580045a8226316c2da6190669964529b875879
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=cc580045a8226316c2da6190669964529b875879

Author: Ville Syrjälä <ville.syrjala at linux.intel.com>
Date:   Mon Jan 19 16:08:31 2015 +0200

i965: Fix max_wm_threads for CHV

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 at lists.freedesktop.org
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
(cherry picked from commit 99754446abae254dab60f08a534cf3510ea25b0f)

---

 src/mesa/drivers/dri/i965/brw_device_info.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i965/brw_device_info.c b/src/mesa/drivers/dri/i965/brw_device_info.c
index ae80a93..b1e65cf 100644
--- a/src/mesa/drivers/dri/i965/brw_device_info.c
+++ b/src/mesa/drivers/dri/i965/brw_device_info.c
@@ -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,




More information about the mesa-commit mailing list