summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Daenzer <michel@daenzer.net>2002-10-01 17:31:20 +0000
committerMichel Daenzer <michel@daenzer.net>2002-10-01 17:31:20 +0000
commit8c14585fc33f2af781261303780c0df70fbe0db2 (patch)
treeefc62eaa7adf7093e8cacdfa4b2b3304a124f2aa
parent537f2208f00069913c161750baef82964d0e870e (diff)
fix wait condition for vertical blank IRQs
-rw-r--r--shared-core/radeon_irq.c2
-rw-r--r--shared/radeon_irq.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/shared-core/radeon_irq.c b/shared-core/radeon_irq.c
index ee28872a..54702bee 100644
--- a/shared-core/radeon_irq.c
+++ b/shared-core/radeon_irq.c
@@ -161,7 +161,7 @@ int DRM(vblank_wait)(drm_device_t *dev, unsigned int *sequence)
*/
DRM_WAIT_ON( ret, dev->vbl_queue, 3*DRM_HZ,
( ( ( cur_vblank = atomic_read(&dev->vbl_received ) )
- + ~*sequence + 1 ) > (1<<23) ) );
+ + ~*sequence + 1 ) <= (1<<23) ) );
*sequence = cur_vblank;
diff --git a/shared/radeon_irq.c b/shared/radeon_irq.c
index ee28872a..54702bee 100644
--- a/shared/radeon_irq.c
+++ b/shared/radeon_irq.c
@@ -161,7 +161,7 @@ int DRM(vblank_wait)(drm_device_t *dev, unsigned int *sequence)
*/
DRM_WAIT_ON( ret, dev->vbl_queue, 3*DRM_HZ,
( ( ( cur_vblank = atomic_read(&dev->vbl_received ) )
- + ~*sequence + 1 ) > (1<<23) ) );
+ + ~*sequence + 1 ) <= (1<<23) ) );
*sequence = cur_vblank;