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:
parent
66cb6c23d1
commit
d8dd2b88a1
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue