summaryrefslogtreecommitdiff
path: root/present/present.c
diff options
context:
space:
mode:
authorAxel Davy <axel.davy@ens.fr>2014-06-18 22:22:09 -0400
committerKeith Packard <keithp@keithp.com>2014-06-23 14:15:48 -0700
commitce581ac3fa80c4c52d87bd54fa92bc566b7d6adc (patch)
treefcbd373aa287831f203ec643210b64e79dd605a6 /present/present.c
parentadb7bc3386559dfee34b359dadcbb6796bc416e7 (diff)
present: fix bad logic in cancelling scheduled operations.
If we present several pixmaps in advance for different msc, the later one shouldn't cancel the previous ones. This reverts a change made by commit e6f5d9d7b7efdacea0f22f1808efca849bcede4c Without this fix, vblank_mode=0 glxgears doesn't update with the present fallback. Signed-off-by: Axel Davy <axel.davy@ens.fr> Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'present/present.c')
-rw-r--r--present/present.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/present/present.c b/present/present.c
index 271c251a9..3aea0d7c6 100644
--- a/present/present.c
+++ b/present/present.c
@@ -771,7 +771,7 @@ present_pixmap(WindowPtr window,
if (!vblank->queued)
continue;
- if (vblank->crtc != target_crtc || vblank->target_msc > target_msc)
+ if (vblank->crtc != target_crtc || vblank->target_msc != target_msc)
continue;
DebugPresent(("\tx %lld %p %8lld: %08lx -> %08lx (crtc %p)\n",