Drop workaround for driver vblank counter going backwards.

The driver code that caused this is no longer necessary and has been dropped.
main
Michel Dänzer 2008-07-21 08:16:59 +02:00
parent e4feaf506d
commit f529a510d2
1 changed files with 2 additions and 9 deletions

View File

@ -355,19 +355,12 @@ static void drm_update_vblank_count(struct drm_device *dev, int crtc)
* a long time.
*/
cur_vblank = dev->driver->get_vblank_counter(dev, crtc);
diff = cur_vblank - dev->last_vblank[crtc];
if (cur_vblank < dev->last_vblank[crtc]) {
if (cur_vblank == dev->last_vblank[crtc] - 1) {
diff = 0;
} else {
diff = dev->max_vblank_count -
dev->last_vblank[crtc];
diff += cur_vblank;
}
diff += dev->max_vblank_count;
DRM_DEBUG("last_vblank[%d]=0x%x, cur_vblank=0x%x => diff=0x%x\n",
crtc, dev->last_vblank[crtc], cur_vblank, diff);
} else {
diff = cur_vblank - dev->last_vblank[crtc];
}
DRM_DEBUG("enabling vblank interrupts on crtc %d, missed %d\n",