Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 218083
b: refs/heads/master
c: cdd5998
h: refs/heads/master
i:
  218081: eb3bf5f
  218079: 4e45ffe
v: v3
  • Loading branch information
Chris Wilson committed Sep 21, 2010
1 parent ab67d5c commit 072a0c2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6eecba33f2fc24544073631dc1b23b7a312e644b
refs/heads/master: cdd59983118c02d9c5ba0c116ded1faef47ec452
15 changes: 15 additions & 0 deletions trunk/drivers/gpu/drm/i915/intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -2487,6 +2487,20 @@ static void intel_crtc_dpms(struct drm_crtc *crtc, int mode)
}
}

static void intel_crtc_disable(struct drm_crtc *crtc)
{
struct drm_crtc_helper_funcs *crtc_funcs = crtc->helper_private;
struct drm_device *dev = crtc->dev;

crtc_funcs->dpms(crtc, DRM_MODE_DPMS_OFF);

if (crtc->fb) {
mutex_lock(&dev->struct_mutex);
i915_gem_object_unpin(to_intel_framebuffer(crtc->fb)->obj);
mutex_unlock(&dev->struct_mutex);
}
}

/* Prepare for a mode set.
*
* Note we could be a lot smarter here. We need to figure out which outputs
Expand Down Expand Up @@ -5163,6 +5177,7 @@ static struct drm_crtc_helper_funcs intel_helper_funcs = {
.mode_set_base = intel_pipe_set_base,
.mode_set_base_atomic = intel_pipe_set_base_atomic,
.load_lut = intel_crtc_load_lut,
.disable = intel_crtc_disable,
};

static const struct drm_crtc_funcs intel_crtc_funcs = {
Expand Down

0 comments on commit 072a0c2

Please sign in to comment.