projects
/
profile
/
ivi
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8ed021
)
Remove broken CRTC enable checks and incorrect user irq enable in set_pipe
author
Jesse Barnes
<jesse.barnes@intel.com>
Tue, 19 Jun 2007 00:43:58 +0000
(17:43 -0700)
committer
Jesse Barnes
<jesse.barnes@intel.com>
Tue, 19 Jun 2007 00:43:58 +0000
(17:43 -0700)
routine.
shared-core/i915_irq.c
patch
|
blob
|
history
diff --git
a/shared-core/i915_irq.c
b/shared-core/i915_irq.c
index
00400fa
..
713ec65
100644
(file)
--- 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;
}