Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 329429
b: refs/heads/master
c: 84bb65b
h: refs/heads/master
i:
  329427: cf132d4
v: v3
  • Loading branch information
Daniel Vetter committed Sep 6, 2012
1 parent dcd497a commit dfb7b2d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 19 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: 0a91ca29215a41760cca03999498959d0e05d9b3
refs/heads/master: 84bb65bded92028a6c803fef332586fedbe092b2
17 changes: 0 additions & 17 deletions trunk/drivers/gpu/drm/i915/intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -3470,18 +3470,10 @@ void intel_crtc_update_dpms(struct drm_crtc *crtc)
struct intel_encoder *intel_encoder;
int pipe = intel_crtc->pipe;
bool enabled, enable = false;
int mode;

for_each_encoder_on_crtc(dev, crtc, intel_encoder)
enable |= intel_encoder->connectors_active;

mode = enable ? DRM_MODE_DPMS_ON : DRM_MODE_DPMS_OFF;

if (intel_crtc->dpms_mode == mode)
return;

intel_crtc->dpms_mode = mode;

if (enable)
dev_priv->display.crtc_enable(crtc);
else
Expand Down Expand Up @@ -5037,11 +5029,6 @@ static int intel_crtc_mode_set(struct drm_crtc *crtc,
x, y, old_fb);
drm_vblank_post_modeset(dev, pipe);

if (ret)
intel_crtc->dpms_mode = DRM_MODE_DPMS_OFF;
else
intel_crtc->dpms_mode = DRM_MODE_DPMS_ON;

return ret;
}

Expand Down Expand Up @@ -7621,10 +7608,6 @@ static void intel_sanitize_crtc(struct intel_crtc *crtc)
struct drm_i915_private *dev_priv = dev->dev_private;
u32 reg, val;

/* Clear the dpms state for compatibility with code still using that
* deprecated state variable. */
crtc->dpms_mode = -1;

/* Clear any frame start delays used for debugging left by the BIOS */
reg = PIPECONF(crtc->pipe);
I915_WRITE(reg, I915_READ(reg) & ~PIPECONF_FRAME_START_DELAY_MASK);
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/gpu/drm/i915/intel_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ struct intel_crtc {
enum pipe pipe;
enum plane plane;
u8 lut_r[256], lut_g[256], lut_b[256];
int dpms_mode;
/*
* Whether the crtc and the connected output pipeline is active. Implies
* that crtc->enabled is set, i.e. the current mode configuration has
Expand Down

0 comments on commit dfb7b2d

Please sign in to comment.