diff options
author | Michel Dänzer <michel@tungstengraphics.com> | 2007-06-15 10:21:44 +0200 |
---|---|---|
committer | Michel Dänzer <michel@tungstengraphics.com> | 2007-06-15 10:21:44 +0200 |
commit | 914a810a82af6f82e69a94448570772f20a94953 (patch) | |
tree | 9477440402de80a4d049c6840950ae756ea2cd3f | |
parent | 7f95a06c61f585cbc4b5fefc833432178550fe31 (diff) |
i915: Fix tests for vblank interrupts being enabled on CRTC by X server.
-rw-r--r-- | shared-core/i915_irq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shared-core/i915_irq.c b/shared-core/i915_irq.c index ad2cf9c2..9861af97 100644 --- a/shared-core/i915_irq.c +++ b/shared-core/i915_irq.c @@ -484,7 +484,7 @@ int i915_enable_vblank(drm_device_t *dev, int crtc) { drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private; - if (dev_priv->vblank_pipe != (1 << crtc)) + if (!(dev_priv->vblank_pipe & (1 << crtc))) return -EINVAL; switch (crtc) { @@ -509,7 +509,7 @@ void i915_disable_vblank(drm_device_t *dev, int crtc) { drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private; - if (crtc > dev_priv->vblank_pipe) + if (!(dev_priv->vblank_pipe & (1 << crtc))) return; switch (crtc) { |