xf86-video-intel: src/sna/sna_dri2.c

Chris Wilson ickle at kemper.freedesktop.org
Tue Aug 18 01:24:58 PDT 2015


 src/sna/sna_dri2.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 79fc9a923cdfa4218868f4c371ca80fd40f41253
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Tue Aug 18 09:21:20 2015 +0100

    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 at chris-wilson.co.uk>

diff --git a/src/sna/sna_dri2.c b/src/sna/sna_dri2.c
index 1d311f0..0d9ce00 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;


More information about the xorg-commit mailing list