summaryrefslogtreecommitdiff
path: root/src/sna/gen6_render.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-09-12 11:54:46 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2011-09-12 11:54:46 +0100
commit2540c877d4811b318e1c2cd707745e5b06c9fa4b (patch)
treef6e3e8a5e1350038ee717efd8522803a649d7e10 /src/sna/gen6_render.c
parentf2a617dcc5fbeaf503db4777f0ec7b3d862085b9 (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.c6
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,