diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-11-10 03:21:25 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-11-17 19:02:48 -0500 |
commit | 4a9216453c8537a7f43a3b1708509b9dd271dc9f (patch) | |
tree | 508c93748fa06117e2b97290ec36e846b670279a | |
parent | c9a9c5e02aedc1a2815877b0268f886d2640b771 (diff) |
drm: when queuing an event with NEXTONMISS, return queued sequence to userspace
If we queue a vblank event but miss it, we should return the actual
sequence number we queued to userspace, so its event handling function
will know which event to look for.
Acked-by: Kristian Høgsberg <krh@bitplanet.net>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | drivers/gpu/drm/drm_irq.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_irq.c b/drivers/gpu/drm/drm_irq.c index 72754aca7abf..6b3ce6d38848 100644 --- a/drivers/gpu/drm/drm_irq.c +++ b/drivers/gpu/drm/drm_irq.c | |||
@@ -585,6 +585,7 @@ static int drm_queue_vblank_event(struct drm_device *dev, int pipe, | |||
585 | if ((vblwait->request.type & _DRM_VBLANK_NEXTONMISS) && | 585 | if ((vblwait->request.type & _DRM_VBLANK_NEXTONMISS) && |
586 | (seq - vblwait->request.sequence) <= (1 << 23)) { | 586 | (seq - vblwait->request.sequence) <= (1 << 23)) { |
587 | vblwait->request.sequence = seq + 1; | 587 | vblwait->request.sequence = seq + 1; |
588 | vblwait->reply.sequence = vblwait->request.sequence; | ||
588 | } | 589 | } |
589 | 590 | ||
590 | DRM_DEBUG("event on vblank count %d, current %d, crtc %d\n", | 591 | DRM_DEBUG("event on vblank count %d, current %d, crtc %d\n", |