i965/chv: Check that compute threads are above threshold
authorBen Widawsky <benjamin.widawsky@intel.com>
Tue, 9 Feb 2016 02:00:41 +0000 (18:00 -0800)
committerBen Widawsky <benjamin.widawsky@intel.com>
Fri, 11 Mar 2016 19:17:28 +0000 (11:17 -0800)
commit3dc3dbc8d826255d60e2aca8822b77619ace206a
treef5ce1bcfa0f676de85a579408b6b81f3ec4c96c0
parent9dd20b715af864ab771e36373f213c6cb4ca4bc1
i965/chv: Check that compute threads are above threshold

The way we are organizing this code, the statically configured max_cs_threads
should always be the minimum value we actually support (ie. are aware of). As a
result, we can fall back to that if we get invalid numbers from the kernel (ie.
when the query succeeds, but the result is lower than expected).

I was originally planning to use an assert, but there is no reason to be so
mean.

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
src/mesa/drivers/dri/i965/brw_device_info.h