mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
drm/i915: Can't do accurate vblank timestamps with UMS
Disable this feature when KMS is not running by setting the driver->get_vblank_timestamp function pointer to NULL. Signed-off-by: Keith Packard <[email protected]> Tested-by: Justin P. Mattock <[email protected]>
This commit is contained in:
parent
aaa6fd2a00
commit
c3613de92e
1 changed files with 4 additions and 2 deletions
|
|
@ -2058,8 +2058,10 @@ void intel_irq_init(struct drm_device *dev)
|
|||
dev->driver->get_vblank_counter = gm45_get_vblank_counter;
|
||||
}
|
||||
|
||||
|
||||
dev->driver->get_vblank_timestamp = i915_get_vblank_timestamp;
|
||||
if (drm_core_check_feature(dev, DRIVER_MODESET))
|
||||
dev->driver->get_vblank_timestamp = i915_get_vblank_timestamp;
|
||||
else
|
||||
dev->driver->get_vblank_timestamp = NULL;
|
||||
dev->driver->get_scanout_position = i915_get_crtc_scanoutpos;
|
||||
|
||||
if (IS_IVYBRIDGE(dev)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue