summaryrefslogtreecommitdiffstats
path: root/sys/dev/drm
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/drm')
-rw-r--r--sys/dev/drm/drm_irq.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/drm/drm_irq.c b/sys/dev/drm/drm_irq.c
index be513e2..4c1f865 100644
--- a/sys/dev/drm/drm_irq.c
+++ b/sys/dev/drm/drm_irq.c
@@ -325,6 +325,10 @@ int drm_vblank_get(struct drm_device *dev, int crtc)
}
}
+ if (dev->vblank[crtc].enabled)
+ dev->vblank[crtc].last =
+ dev->driver->get_vblank_counter(dev, crtc);
+
return ret;
}
OpenPOWER on IntegriCloud