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>
This commit is contained in:
Chris Wilson 2012-04-06 21:10:50 +01:00
parent b790ba2ec9
commit 4356fae72d
1 changed files with 2 additions and 1 deletions

View File

@ -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);