sna/gen6+: Demote BLT ring switching priority if semaphores are disabled

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2015-03-13 22:27:31 +00:00
parent 66cb6c23d1
commit d8dd2b88a1
1 changed files with 6 additions and 3 deletions

View File

@ -106,12 +106,15 @@ static int prefer_blt_bo(struct sna *sna,
inline static bool force_blt_ring(struct sna *sna)
{
if (sna->flags & SNA_POWERSAVE)
return true;
if (sna->kgem.mode == KGEM_RENDER)
return false;
if (NO_RING_SWITCH(sna))
return sna->kgem.ring == KGEM_BLT;
if (sna->flags & SNA_POWERSAVE)
return true;
if (sna->render_state.gt < 2)
return true;