sna/dri2: Immediately complete a stale swap if any are queued

If we don't control the vblank for the window, we cannot use the vblank
signal as it ends up being queued as well.

References: https://bugs.freedesktop.org/show_bug.cgi?id=91658
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2015-08-18 09:21:20 +01:00
parent 07eee812b2
commit 79fc9a923c
1 changed files with 1 additions and 1 deletions

View File

@ -3268,7 +3268,7 @@ skip:
if (crtc) {
if (!info)
info = sna_dri2_add_event(sna, draw, client, crtc);
if (!info)
if (info != dri2_chain(draw))
goto fake;
info->type = SWAP_WAIT;