sna/gen5: Use the BLT rather than flush when copying

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2011-11-24 03:04:09 +00:00
parent a44663af93
commit 11e0b456de
1 changed files with 10 additions and 1 deletions

View File

@ -2471,8 +2471,17 @@ gen5_render_copy_boxes(struct sna *sna, uint8_t alu,
if (!kgem_check_bo(&sna->kgem, dst_bo, src_bo, NULL))
kgem_submit(&sna->kgem);
if (kgem_bo_is_dirty(src_bo))
if (kgem_bo_is_dirty(src_bo)) {
if (sna_blt_compare_depth(&src->drawable, &dst->drawable) &&
sna_blt_copy_boxes(sna, alu,
src_bo, src_dx, src_dy,
dst_bo, dst_dx, dst_dy,
dst->drawable.bitsPerPixel,
box, n))
return TRUE;
kgem_emit_flush(&sna->kgem);
}
gen5_copy_bind_surfaces(sna, &tmp);
gen5_align_vertex(sna, &tmp);