Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 329399
b: refs/heads/master
c: eae307a
h: refs/heads/master
i:
  329397: 6305e82
  329395: 5ce651a
  329391: 194d43d
v: v3
  • Loading branch information
Daniel Vetter committed Sep 6, 2012
1 parent 932a186 commit 423dfd6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 36 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 76e5a89c0a01c43b09512da633910dd0d8b398be
refs/heads/master: eae307a5304f8c0956b8eab75596abba7ad58a5c
37 changes: 2 additions & 35 deletions trunk/drivers/gpu/drm/i915/intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -3500,34 +3500,6 @@ static void intel_crtc_disable(struct drm_crtc *crtc)
}
}

/* Prepare for a mode set.
*
* Note we could be a lot smarter here. We need to figure out which outputs
* will be enabled, which disabled (in short, how the config will changes)
* and perform the minimum necessary steps to accomplish that, e.g. updating
* watermarks, FBC configuration, making sure PLLs are programmed correctly,
* panel fitting is in the proper state, etc.
*/
static void i9xx_crtc_prepare(struct drm_crtc *crtc)
{
i9xx_crtc_disable(crtc);
}

static void i9xx_crtc_commit(struct drm_crtc *crtc)
{
i9xx_crtc_enable(crtc);
}

static void ironlake_crtc_prepare(struct drm_crtc *crtc)
{
ironlake_crtc_disable(crtc);
}

static void ironlake_crtc_commit(struct drm_crtc *crtc)
{
ironlake_crtc_enable(crtc);
}

void intel_encoder_prepare(struct drm_encoder *encoder)
{
struct drm_encoder_helper_funcs *encoder_funcs = encoder->helper_private;
Expand Down Expand Up @@ -6626,13 +6598,8 @@ static void intel_crtc_init(struct drm_device *dev, int pipe)
intel_crtc->active = true; /* force the pipe off on setup_init_config */
intel_crtc->bpp = 24; /* default for pre-Ironlake */

if (HAS_PCH_SPLIT(dev)) {
intel_helper_funcs.prepare = ironlake_crtc_prepare;
intel_helper_funcs.commit = ironlake_crtc_commit;
} else {
intel_helper_funcs.prepare = i9xx_crtc_prepare;
intel_helper_funcs.commit = i9xx_crtc_commit;
}
intel_helper_funcs.prepare = dev_priv->display.crtc_disable;
intel_helper_funcs.commit = dev_priv->display.crtc_enable;

drm_crtc_helper_add(&intel_crtc->base, &intel_helper_funcs);
}
Expand Down

0 comments on commit 423dfd6

Please sign in to comment.