diff options
author | Michel Dänzer <michel@tungstengraphics.com> | 2006-09-01 11:24:38 +0200 |
---|---|---|
committer | Michel Dänzer <michel@tungstengraphics.com> | 2006-09-28 15:41:36 +0200 |
commit | 7f09f957d9a61ac107f8fd29128d7899a3e8a228 (patch) | |
tree | 60494042d6170ea9b313f9e21ac9433e3a906e2f | |
parent | c2bdb76814755c9ac6e66a8815f23af0fe4f3a91 (diff) |
Fix 'sequence has passed' condition in i915_vblank_swap().
-rw-r--r-- | shared-core/i915_irq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-core/i915_irq.c b/shared-core/i915_irq.c index 68e7c668..9cd8ece4 100644 --- a/shared-core/i915_irq.c +++ b/shared-core/i915_irq.c @@ -442,7 +442,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); |