From c7d471b6ae936127311a816a8d15b4565746af48 Mon Sep 17 00:00:00 2001 From: Michel Daenzer Date: Sun, 2 Feb 2003 03:06:47 +0000 Subject: don't inflate relative vblank sequence numbers on repeated calls (e.g. when interrupted by a signal) --- bsd-core/drm_dma.c | 1 + 1 file changed, 1 insertion(+) (limited to 'bsd-core/drm_dma.c') diff --git a/bsd-core/drm_dma.c b/bsd-core/drm_dma.c index 69c66c9a..0f0dd4fd 100644 --- a/bsd-core/drm_dma.c +++ b/bsd-core/drm_dma.c @@ -619,6 +619,7 @@ int DRM(wait_vblank)( DRM_IOCTL_ARGS ) if (vblwait.request.type & _DRM_VBLANK_RELATIVE) { vblwait.request.sequence += atomic_read(&dev->vbl_received); + vblwait.request.type &= ~_DRM_VBLANK_RELATIVE; } flags = vblwait.request.type & _DRM_VBLANK_FLAGS_MASK; -- cgit v1.2.3