Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c3613de9 authored by Keith Packard's avatar Keith Packard
Browse files

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: default avatarKeith Packard <keithp@keithp.com>
Tested-by: default avatarJustin P. Mattock <justinmattock@gmail.com>
parent aaa6fd2a
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -2058,8 +2058,10 @@ void intel_irq_init(struct drm_device *dev)
		dev->driver->get_vblank_counter = gm45_get_vblank_counter;
	}


	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)) {