From 29b70ccdf67ee7afa19bed26de8678476ba94f6e Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 17 Apr 2016 15:02:46 +0100 Subject: sna/present: Fix requeuing after interrupting TearFree Increment the target_msc by one, not the last known msc! Reported-by: Rafael Ristovski Signed-off-by: Chris Wilson --- src/sna/sna_present.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/sna') diff --git a/src/sna/sna_present.c b/src/sna/sna_present.c index 96d42e3d..2f181a9f 100644 --- a/src/sna/sna_present.c +++ b/src/sna/sna_present.c @@ -394,7 +394,8 @@ sna_present_vblank_handler(struct drm_event_vblank *event) if (info->sna->mode.shadow_wait) { DBG(("%s: recursed from TearFree\n", __FUNCTION__)); - if (sna_present_queue(info, msc + 1)) + info->target_msc = msc + 1; + if (sna_present_queue(info, msc)) return; } -- cgit v1.2.3