Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 178855
b: refs/heads/master
c: e5a95eb
h: refs/heads/master
i:
  178853: 6d3eacd
  178851: c6d87b7
  178847: 996f3a2
v: v3
  • Loading branch information
Zhao Yakui authored and Eric Anholt committed Jan 6, 2010
1 parent 0acd949 commit c0a6020
Show file tree
Hide file tree
Showing 2 changed files with 13 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: 8faf3b317471179c02db339aa80955a2e88c036d
refs/heads/master: e5a95eb778690bc864eb330202d2c1b974caaeb4
12 changes: 12 additions & 0 deletions trunk/drivers/gpu/drm/i915/intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -2993,6 +2993,18 @@ static int intel_crtc_mode_set(struct drm_crtc *crtc,

/* determine panel color depth */
temp = I915_READ(pipeconf_reg);
temp &= ~PIPE_BPC_MASK;
if (is_lvds) {
int lvds_reg = I915_READ(PCH_LVDS);
/* the BPC will be 6 if it is 18-bit LVDS panel */
if ((lvds_reg & LVDS_A3_POWER_MASK) == LVDS_A3_POWER_UP)
temp |= PIPE_8BPC;
else
temp |= PIPE_6BPC;
} else
temp |= PIPE_8BPC;
I915_WRITE(pipeconf_reg, temp);
I915_READ(pipeconf_reg);

switch (temp & PIPE_BPC_MASK) {
case PIPE_8BPC:
Expand Down

0 comments on commit c0a6020

Please sign in to comment.