sna/gen8: Set GT level

We use the GT level to decide how favourable it is to use the GPU in
various circumstances, now set it.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2014-05-30 12:14:40 +01:00
parent bb49222a51
commit 1618d6cfa6
1 changed files with 6 additions and 0 deletions

View File

@ -3823,6 +3823,12 @@ static bool gen8_render_setup(struct sna *sna)
struct sna_static_stream general;
struct gen8_sampler_state *ss;
int i, j, k, l, m;
uint32_t devid;
devid = intel_get_device_id(sna->scrn);
if (devid & 0xf)
state->gt = ((devid >> 4) & 0xf) + 1;
DBG(("%s: gt=%d\n", __FUNCTION__, state->gt));
sna_static_stream_init(&general);