From 4356fae72db3a33935b575edf95c84fbb48072a7 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 6 Apr 2012 21:10:50 +0100 Subject: [PATCH] sna/video: Only wait upon the scanout pixmap Caught by the addition of the assertion. Reported-by: Jiri Slaby References: https://bugs.freedesktop.org/show_bug.cgi?id=47597 Signed-off-by: Chris Wilson --- src/sna/sna_video_textured.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sna/sna_video_textured.c b/src/sna/sna_video_textured.c index b740b6a0..4975f55f 100644 --- a/src/sna/sna_video_textured.c +++ b/src/sna/sna_video_textured.c @@ -287,7 +287,8 @@ sna_video_textured_put_image(ScrnInfoPtr scrn, } } - if (crtc && video->SyncToVblank != 0) + if (crtc && video->SyncToVblank != 0 && + pixmap == sna->front && !sna->shadow) flush = sna_wait_for_scanline(sna, pixmap, crtc, &clip->extents);