sna/gen6: Encourage migration of small BLT operations
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
0d38419cbe
commit
bb69256b52
|
|
@ -46,9 +46,6 @@ inline static bool can_switch_to_blt(struct sna *sna,
|
|||
if (sna->kgem.ring != KGEM_RENDER)
|
||||
return true;
|
||||
|
||||
if (NO_RING_SWITCH(sna))
|
||||
return false;
|
||||
|
||||
if (bo && RQ_IS_BLT(bo->rq))
|
||||
return true;
|
||||
|
||||
|
|
@ -61,6 +58,9 @@ inline static bool can_switch_to_blt(struct sna *sna,
|
|||
if (bo && RQ_IS_RENDER(bo->rq))
|
||||
return false;
|
||||
|
||||
if (NO_RING_SWITCH(sna))
|
||||
return false;
|
||||
|
||||
if (flags & COPY_LAST)
|
||||
return true;
|
||||
|
||||
|
|
@ -207,7 +207,7 @@ prefer_blt_fill(struct sna *sna, struct kgem_bo *bo, unsigned flags)
|
|||
if (!prefer_blt_ring(sna, bo, 0))
|
||||
return false;
|
||||
} else {
|
||||
if (can_switch_to_blt(sna, bo, 0))
|
||||
if (can_switch_to_blt(sna, bo, COPY_LAST))
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue