diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-09-12 11:54:46 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-09-12 11:54:46 +0100 |
commit | 2540c877d4811b318e1c2cd707745e5b06c9fa4b (patch) | |
tree | f6e3e8a5e1350038ee717efd8522803a649d7e10 /src/sna/gen6_render.c | |
parent | f2a617dcc5fbeaf503db4777f0ec7b3d862085b9 (diff) |
sna/gen6: Prefer RENDER for copies as it compacts better
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/gen6_render.c')
-rw-r--r-- | src/sna/gen6_render.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/sna/gen6_render.c b/src/sna/gen6_render.c index 6fb72757..03ddf758 100644 --- a/src/sna/gen6_render.c +++ b/src/sna/gen6_render.c @@ -2307,8 +2307,7 @@ gen6_render_copy_boxes(struct sna *sna, uint8_t alu, __FUNCTION__, src_dx, src_dy, dst_dx, dst_dy, n, alu, src_bo == dst_bo)); - /* XXX benchmark me! */ - if (sna->kgem.mode != KGEM_RENDER && + if (sna->kgem.mode == KGEM_BLT && sna_blt_compare_depth(&src->drawable, &dst->drawable) && sna_blt_copy_boxes(sna, alu, src_bo, src_dx, src_dy, @@ -2465,8 +2464,7 @@ gen6_render_copy(struct sna *sna, uint8_t alu, src->drawable.width, src->drawable.height, dst->drawable.width, dst->drawable.height)); - /* XXX benchmark me! */ - if (sna->kgem.mode != KGEM_RENDER && + if (sna->kgem.mode == KGEM_BLT && sna_blt_compare_depth(&src->drawable, &dst->drawable) && sna_blt_copy(sna, alu, src_bo, dst_bo, |