From 79fc9a923cdfa4218868f4c371ca80fd40f41253 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 18 Aug 2015 09:21:20 +0100 Subject: [PATCH] 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 --- src/sna/sna_dri2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sna/sna_dri2.c b/src/sna/sna_dri2.c index 1d311f01..0d9ce00f 100644 --- a/src/sna/sna_dri2.c +++ b/src/sna/sna_dri2.c @@ -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;