summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-04-06 21:10:50 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-04-06 21:10:50 +0100
commit4356fae72db3a33935b575edf95c84fbb48072a7 (patch)
tree45edc7758b0470701480a227f023ec09fc03af43
parentb790ba2ec9ead51227d85fc8630bc7505eb7d7b3 (diff)
sna/video: Only wait upon the scanout pixmap
Caught by the addition of the assertion. Reported-by: Jiri Slaby <jirislaby@gmail.com> References: https://bugs.freedesktop.org/show_bug.cgi?id=47597 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_video_textured.c3
1 files changed, 2 insertions, 1 deletions
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);