Drop workaround for driver vblank counter going backwards.
The driver code that caused this is no longer necessary and has been dropped.main
parent
e4feaf506d
commit
f529a510d2
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue