From 8bb8231236a6b877895663aeaa9cef731d67fe68 Mon Sep 17 00:00:00 2001 From: Ben Skeggs Date: Tue, 30 Nov 2010 15:27:36 +1000 Subject: dri2: fix certain clients blocking forever when sync-to-vblank unavailable Signed-off-by: Ben Skeggs --- src/nouveau_dri2.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/nouveau_dri2.c b/src/nouveau_dri2.c index 969c6f3..2dd6da4 100644 --- a/src/nouveau_dri2.c +++ b/src/nouveau_dri2.c @@ -322,8 +322,10 @@ nouveau_dri2_schedule_wait(ClientPtr client, DrawablePtr draw, CARD64 current_msc; int ret; - if (!can_sync_to_vblank(draw)) + if (!can_sync_to_vblank(draw)) { + DRI2WaitMSCComplete(client, draw, target_msc, 0, 0); return TRUE; + } /* Initialize a vblank structure */ s = malloc(sizeof(*s)); -- cgit v1.2.1