From d2d53024fb4003a6b86a3ea1ea33c76ac20bebc9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michel=20D=C3=A4nzer?= Date: Fri, 22 Jun 2007 11:45:23 +0200 Subject: [PATCH] Fix vblank wait condition. Sync-to-vblank actually works again for me with radeon. --- linux-core/drm_irq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-core/drm_irq.c b/linux-core/drm_irq.c index 01e970f..5d8d71b 100644 --- a/linux-core/drm_irq.c +++ b/linux-core/drm_irq.c @@ -554,7 +554,7 @@ int drm_wait_vblank(DRM_IOCTL_ARGS) return ret; DRM_WAIT_ON(ret, dev->vbl_queue[crtc], 3 * DRM_HZ, (((cur_vblank = drm_vblank_count(dev, crtc)) - - seq) <= (1 << 23))); + - vblwait.request.sequence) <= (1 << 23))); drm_vblank_put(dev, crtc); do_gettimeofday(&now); vblwait.reply.tval_sec = now.tv_sec; -- 2.7.4