sna/gen6+: Prefer the BLT for small copies

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2015-03-07 10:58:53 +00:00
parent 8e8eac5097
commit aefedd2baf
3 changed files with 12 additions and 0 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;