sna/present: Fix requeuing after interrupting TearFree

Increment the target_msc by one, not the last known msc!

Reported-by: Rafael Ristovski <rafael.ristovski@gmail.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2016-04-17 15:02:46 +01:00
parent f2a46458a2
commit 29b70ccdf6
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}