Commit 2b5cde2b authored by Li Peng's avatar Li Peng Committed by Eric Anholt

drm/i915: Fix LVDS dither setting

Update bdb_lvds_options structure according to its defination in
2D driver. Then we can parse and set 'lvds_dither' bit correctly
on non-965 chips.
Signed-off-by: default avatarLi Peng <peng.li@intel.com>
Signed-off-by: default avatarEric Anholt <eric@anholt.net>
parent 98787c05
...@@ -162,13 +162,13 @@ struct bdb_lvds_options { ...@@ -162,13 +162,13 @@ struct bdb_lvds_options {
u8 panel_type; u8 panel_type;
u8 rsvd1; u8 rsvd1;
/* LVDS capabilities, stored in a dword */ /* LVDS capabilities, stored in a dword */
u8 rsvd2:1;
u8 lvds_edid:1;
u8 pixel_dither:1;
u8 pfit_ratio_auto:1;
u8 pfit_gfx_mode_enhanced:1;
u8 pfit_text_mode_enhanced:1;
u8 pfit_mode:2; u8 pfit_mode:2;
u8 pfit_text_mode_enhanced:1;
u8 pfit_gfx_mode_enhanced:1;
u8 pfit_ratio_auto:1;
u8 pixel_dither:1;
u8 lvds_edid:1;
u8 rsvd2:1;
u8 rsvd4; u8 rsvd4;
} __attribute__((packed)); } __attribute__((packed));
......
...@@ -265,7 +265,7 @@ static void intel_lvds_mode_set(struct drm_encoder *encoder, ...@@ -265,7 +265,7 @@ static void intel_lvds_mode_set(struct drm_encoder *encoder,
pfit_control = 0; pfit_control = 0;
if (!IS_I965G(dev)) { if (!IS_I965G(dev)) {
if (dev_priv->panel_wants_dither) if (dev_priv->panel_wants_dither || dev_priv->lvds_dither)
pfit_control |= PANEL_8TO6_DITHER_ENABLE; pfit_control |= PANEL_8TO6_DITHER_ENABLE;
} }
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment