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:
parent
f2a46458a2
commit
29b70ccdf6
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue