summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-01-23 10:45:14 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-01-24 18:26:31 +0000
commit3885c6bbd0c6c9cc3c8e6d4f723abc87c593b07a (patch)
tree28462f6036dfd8fdf885bb7fd9afa510b3c90bf7 /drivers/gpu
parent4041b85323ca00faaf8cdae22ac5cc16f1af2451 (diff)
downloadop-kernel-dev-3885c6bbd0c6c9cc3c8e6d4f723abc87c593b07a.zip
op-kernel-dev-3885c6bbd0c6c9cc3c8e6d4f723abc87c593b07a.tar.gz
drm/i915: Disable high-precision vblank timestamping for UMS
We only have sufficient information for accurate (sub-frame) timestamping when the modesetting is under our control. Reported-by: Chris Clayton <chris2553@googlemail.com> Tested-by: Chris Clayton <chris2553@googlemail.com> Reviewed-by: Mario Kleiner <mario.kleiner@tuebingen.mpg.de> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
index 59eb19b..66796bb 100644
--- a/drivers/gpu/drm/i915/i915_drv.c
+++ b/drivers/gpu/drm/i915/i915_drv.c
@@ -752,6 +752,9 @@ static int __init i915_init(void)
driver.driver_features &= ~DRIVER_MODESET;
#endif
+ if (!(driver.driver_features & DRIVER_MODESET))
+ driver.get_vblank_timestamp = NULL;
+
return drm_init(&driver);
}
OpenPOWER on IntegriCloud