summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-09-01 13:37:30 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-09-01 13:37:30 +0100
commitab01c1211e40f788fb2970ad03930bbaa92e58d4 (patch)
tree61f7b7112ae14cdba4c97dfe5a9cf6627fed8b0d
parent21cc987ca8a531e399350564a5af7f551406b8d6 (diff)
sna: Fallback to normal composite if the blt redisplay fails
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_display.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index d162def4..a1a87825 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -6533,11 +6533,12 @@ sna_crtc_redisplay(xf86CrtcPtr crtc, RegionPtr region, struct kgem_bo *bo)
transformed_box(&whole.extents, crtc);
region = &whole;
}
- sna_blt_fill_boxes(sna, GXcopy,
- bo, draw->bitsPerPixel,
- priv->clear_color,
- region_rects(region), region_num_rects(region));
- return;
+ if (sna_blt_fill_boxes(sna, GXcopy,
+ bo, draw->bitsPerPixel,
+ priv->clear_color,
+ region_rects(region),
+ region_num_rects(region)))
+ return;
}
if (crtc->filter == NULL &&