i965/chv: Use kernel provided info for max_cs_threads
authorBen Widawsky <benjamin.widawsky@intel.com>
Tue, 9 Feb 2016 00:22:06 +0000 (16:22 -0800)
committerBen Widawsky <benjamin.widawsky@intel.com>
Fri, 11 Mar 2016 19:17:28 +0000 (11:17 -0800)
commit9dd20b715af864ab771e36373f213c6cb4ca4bc1
treecfadeae68b17c5937ffc2e0cec5810f14390d4b0
parent38eb6068847708f054b2d2e93f569061b5245852
i965/chv: Use kernel provided info for max_cs_threads

With the previous patches, the code can find out the actual number of available
compute threads. It is enabled only for Cherryview since that is the only
platform I know for a fact has shipped devices which can benefit from this.  It
seems like other platforms /might/ benefit from this because of fused
configurations which /might/ have shipped. Fallback code is still there.

v2: Some minor adjustments from Matt

Signed-off-by: Ben Widawsky <benjamin.widawsky@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com
src/mesa/drivers/dri/i965/brw_context.c