mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-05 18:18:27 +02:00
Fix 'sequence has passed' condition in i915_vblank_swap().
(cherry picked from 7f09f957d9 commit)
This commit is contained in:
parent
f9aa4f5973
commit
c4c47a7eac
1 changed files with 1 additions and 1 deletions
|
|
@ -474,7 +474,7 @@ int i915_vblank_swap(DRM_IOCTL_ARGS)
|
|||
swap.sequence += curseq;
|
||||
break;
|
||||
case _DRM_VBLANK_ABSOLUTE:
|
||||
if ((curseq - swap.sequence) > (1<<23)) {
|
||||
if ((curseq - swap.sequence) <= (1<<23)) {
|
||||
spin_unlock_irqrestore(&dev_priv->swaps_lock, irqflags);
|
||||
DRM_DEBUG("Missed target sequence\n");
|
||||
return DRM_ERR(EINVAL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue