From 7f95a06c61f585cbc4b5fefc833432178550fe31 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michel=20D=C3=A4nzer?= <michel@tungstengraphics.com>
Date: Fri, 15 Jun 2007 10:12:23 +0200
Subject: Return current sequence number to userspace after blocking wait for
 vblank.

---
 linux-core/drm_irq.c | 1 +
 1 file changed, 1 insertion(+)

(limited to 'linux-core')

diff --git a/linux-core/drm_irq.c b/linux-core/drm_irq.c
index f73d067f..b4e3c10f 100644
--- a/linux-core/drm_irq.c
+++ b/linux-core/drm_irq.c
@@ -556,6 +556,7 @@ int drm_wait_vblank(DRM_IOCTL_ARGS)
 		do_gettimeofday(&now);
 		vblwait.reply.tval_sec = now.tv_sec;
 		vblwait.reply.tval_usec = now.tv_usec;
+		vblwait.reply.sequence = cur_vblank;
 	}
 
       done:
-- 
cgit v1.2.3