sna/gen6+: Prefer the BLT for small copies
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
8e8eac5097
commit
aefedd2baf
|
|
@ -2694,6 +2694,10 @@ static inline bool prefer_blt_copy(struct sna *sna,
|
|||
kgem_bo_is_render(src_bo))
|
||||
return false;
|
||||
|
||||
if (flags & COPY_LAST &&
|
||||
can_switch_to_blt(sna, dst_bo, flags))
|
||||
return true;
|
||||
|
||||
if (prefer_render_ring(sna, dst_bo))
|
||||
return false;
|
||||
|
||||
|
|
|
|||
|
|
@ -2897,6 +2897,10 @@ prefer_blt_copy(struct sna *sna,
|
|||
kgem_bo_is_render(src_bo))
|
||||
return false;
|
||||
|
||||
if (flags & COPY_LAST &&
|
||||
can_switch_to_blt(sna, dst_bo, flags))
|
||||
return true;
|
||||
|
||||
if (prefer_render_ring(sna, dst_bo))
|
||||
return false;
|
||||
|
||||
|
|
|
|||
|
|
@ -2720,6 +2720,10 @@ prefer_blt_copy(struct sna *sna,
|
|||
kgem_bo_is_render(src_bo))
|
||||
return false;
|
||||
|
||||
if (flags & COPY_LAST &&
|
||||
can_switch_to_blt(sna, dst_bo, flags))
|
||||
return true;
|
||||
|
||||
if (prefer_render_ring(sna, dst_bo))
|
||||
return false;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue