From db689c7b95613237cec904c3f6ee27e8c2bf7ce0 Mon Sep 17 00:00:00 2001 From: Jesse Barnes Date: Tue, 12 Jun 2007 10:44:21 -0700 Subject: Initial checkin of vblank rework. Code attempts to reduce the number of vblank interrupt in order to save power. --- shared-core/i915_dma.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'shared-core/i915_dma.c') 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); -- cgit v1.2.3