diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2009-11-23 18:51:13 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2009-11-23 18:51:13 +0000 |
commit | b5f451ac5339886ea0aacf419795cc922ae485db (patch) | |
tree | 5957ebe350a8526e912249dd3b9de28a6e3665cb /sys/dev/pci | |
parent | d44ed417c9c923d8f29721defe7eafb1f63ef1b1 (diff) |
G4X chipsets actually have a slightly larger vblank counter register,
so tell the vblank layer this.
from upstream, ages ago.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/drm/i915_irq.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/i915_irq.c b/sys/dev/pci/drm/i915_irq.c index b899f01b6b3..2fd852de163 100644 --- a/sys/dev/pci/drm/i915_irq.c +++ b/sys/dev/pci/drm/i915_irq.c @@ -356,6 +356,8 @@ i915_driver_irq_install(struct drm_device *dev) return (ENOENT); dev->vblank->vb_max = 0xffffff; /* only 24 bits of frame count */ + if (IS_G4X(dev_priv)) + dev->vblank->vb_max = 0xffffffff; /* Unmask the interrupts that we always want on. */ dev_priv->irq_mask_reg = ~I915_INTERRUPT_ENABLE_FIX; |