summaryrefslogtreecommitdiff
path: root/src/sna/gen6_render.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sna/gen6_render.c')
-rw-r--r--src/sna/gen6_render.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/sna/gen6_render.c b/src/sna/gen6_render.c
index 8668d124..b141b2a0 100644
--- a/src/sna/gen6_render.c
+++ b/src/sna/gen6_render.c
@@ -2725,10 +2725,9 @@ fallback_blt:
src_bo, src_dx, src_dy,
dst_bo, dst_dx, dst_dy,
box, n, &extents)) {
- if (too_large(extents.x2-extents.x1, extents.y2-extents.y1))
- goto fallback_blt;
+ bool big = too_large(extents.x2-extents.x1, extents.y2-extents.y1);
- if (can_switch_to_blt(sna, dst_bo, flags) &&
+ if ((big || can_switch_to_blt(sna, dst_bo, flags)) &&
sna_blt_copy_boxes(sna, alu,
src_bo, src_dx, src_dy,
dst_bo, dst_dx, dst_dy,
@@ -2736,6 +2735,9 @@ fallback_blt:
box, n))
return true;
+ if (big)
+ goto fallback_blt;
+
return sna_render_copy_boxes__overlap(sna, alu,
src, src_bo, src_dx, src_dy,
dst, dst_bo, dst_dx, dst_dy,