From 914a810a82af6f82e69a94448570772f20a94953 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Fri, 15 Jun 2007 10:21:44 +0200 Subject: i915: Fix tests for vblank interrupts being enabled on CRTC by X server. --- shared-core/i915_irq.c | 4 ++-- 1 file 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) { -- cgit v1.2.3