summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorJesse Barnes <jesse.barnes@intel.com>2007-06-18 17:43:58 -0700
committerJesse Barnes <jesse.barnes@intel.com>2007-06-18 17:43:58 -0700
commit2d24455ed8b12df6d06d135cb70f02473d11f4b0 (patch)
tree062bbfe7adf6ffa5a847be08f5c2a60623e1071a /shared-core
parentd8ed021d29951b17cfbda0ade968c73a52ac7ec7 (diff)
Remove broken CRTC enable checks and incorrect user irq enable in set_pipe
routine.
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/i915_irq.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/shared-core/i915_irq.c b/shared-core/i915_irq.c
index 00400fa2..713ec654 100644
--- a/shared-core/i915_irq.c
+++ b/shared-core/i915_irq.c
@@ -482,9 +482,6 @@ 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)))
- return -EINVAL;
-
switch (crtc) {
case 0:
dev_priv->irq_enable_reg |= VSYNC_PIPEA_FLAG;
@@ -507,9 +504,6 @@ void i915_disable_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)))
- return;
-
switch (crtc) {
case 0:
dev_priv->irq_enable_reg &= ~VSYNC_PIPEA_FLAG;
@@ -560,8 +554,6 @@ int i915_vblank_pipe_set(DRM_IOCTL_ARGS)
dev_priv->vblank_pipe = pipe.pipe;
- i915_enable_interrupt (dev);
-
return 0;
}