diff options
author | Jesse Barnes <jbarnes@hobbes.virtuousgeek.org> | 2007-06-12 10:44:21 -0700 |
---|---|---|
committer | Jesse Barnes <jbarnes@hobbes.virtuousgeek.org> | 2007-06-12 10:44:21 -0700 |
commit | db689c7b95613237cec904c3f6ee27e8c2bf7ce0 (patch) | |
tree | 9e8b5377207f3d2a89759f189b1be611f6e85859 /shared-core/i915_dma.c | |
parent | 280083d4a2a12a1ff6dc1b068553a4ae8960200c (diff) |
Initial checkin of vblank rework. Code attempts to reduce the number
of vblank interrupt in order to save power.
Diffstat (limited to 'shared-core/i915_dma.c')
-rw-r--r-- | shared-core/i915_dma.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/shared-core/i915_dma.c b/shared-core/i915_dma.c index ebb184cc..73972d56 100644 --- a/shared-core/i915_dma.c +++ b/shared-core/i915_dma.c @@ -833,6 +833,20 @@ static int i915_setparam(DRM_IOCTL_ARGS) case I915_SETPARAM_ALLOW_BATCHBUFFER: dev_priv->allow_batchbuffer = param.value; break; + case I915_SETPARAM_PREMODESET: + if (param.value > 1) { + DRM_ERROR("bad crtc\n"); + return -EINVAL; + } + i915_premodeset(dev, param.value); + break; + case I915_SETPARAM_POSTMODESET: + if (param.value > 1) { + DRM_ERROR("bad crtc\n"); + return -EINVAL; + } + i915_postmodeset(dev, param.value); + break; default: DRM_ERROR("unknown parameter %d\n", param.param); return DRM_ERR(EINVAL); |