summaryrefslogtreecommitdiff
path: root/linux-core/drm_dma.c
diff options
context:
space:
mode:
authorMichel Daenzer <michel@daenzer.net>2003-02-02 03:06:47 +0000
committerMichel Daenzer <michel@daenzer.net>2003-02-02 03:06:47 +0000
commitc7d471b6ae936127311a816a8d15b4565746af48 (patch)
treeb5c5047f5852da807a7010db82f600e06e891c69 /linux-core/drm_dma.c
parent9b9b099471580616e1685bae725f2c297179ae99 (diff)
don't inflate relative vblank sequence numbers on repeated calls (e.g. when
interrupted by a signal)
Diffstat (limited to 'linux-core/drm_dma.c')
-rw-r--r--linux-core/drm_dma.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux-core/drm_dma.c b/linux-core/drm_dma.c
index 33af34be..df4ed809 100644
--- a/linux-core/drm_dma.c
+++ b/linux-core/drm_dma.c
@@ -628,6 +628,7 @@ int DRM(wait_vblank)( DRM_IOCTL_ARGS )
switch ( vblwait.request.type & ~_DRM_VBLANK_FLAGS_MASK ) {
case _DRM_VBLANK_RELATIVE:
vblwait.request.sequence += atomic_read( &dev->vbl_received );
+ vblwait.request.type &= ~_DRM_VBLANK_RELATIVE;
case _DRM_VBLANK_ABSOLUTE:
break;
default: