diff options
Diffstat (limited to 'drivers/gpu/drm/i915/intel_lvds.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_lvds.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/drm/i915/intel_lvds.c b/drivers/gpu/drm/i915/intel_lvds.c index 8f909cda62d8..1a311ad01116 100644 --- a/drivers/gpu/drm/i915/intel_lvds.c +++ b/drivers/gpu/drm/i915/intel_lvds.c | |||
@@ -262,12 +262,6 @@ static bool intel_lvds_mode_fixup(struct drm_encoder *encoder, | |||
262 | return true; | 262 | return true; |
263 | } | 263 | } |
264 | 264 | ||
265 | /* Make sure pre-965s set dither correctly */ | ||
266 | if (INTEL_INFO(dev)->gen < 4) { | ||
267 | if (dev_priv->lvds_dither) | ||
268 | pfit_control |= PANEL_8TO6_DITHER_ENABLE; | ||
269 | } | ||
270 | |||
271 | /* Native modes don't need fitting */ | 265 | /* Native modes don't need fitting */ |
272 | if (adjusted_mode->hdisplay == mode->hdisplay && | 266 | if (adjusted_mode->hdisplay == mode->hdisplay && |
273 | adjusted_mode->vdisplay == mode->vdisplay) | 267 | adjusted_mode->vdisplay == mode->vdisplay) |
@@ -375,10 +369,16 @@ static bool intel_lvds_mode_fixup(struct drm_encoder *encoder, | |||
375 | } | 369 | } |
376 | 370 | ||
377 | out: | 371 | out: |
372 | /* If not enabling scaling, be consistent and always use 0. */ | ||
378 | if ((pfit_control & PFIT_ENABLE) == 0) { | 373 | if ((pfit_control & PFIT_ENABLE) == 0) { |
379 | pfit_control = 0; | 374 | pfit_control = 0; |
380 | pfit_pgm_ratios = 0; | 375 | pfit_pgm_ratios = 0; |
381 | } | 376 | } |
377 | |||
378 | /* Make sure pre-965 set dither correctly */ | ||
379 | if (INTEL_INFO(dev)->gen < 4 && dev_priv->lvds_dither) | ||
380 | pfit_control |= PANEL_8TO6_DITHER_ENABLE; | ||
381 | |||
382 | if (pfit_control != intel_lvds->pfit_control || | 382 | if (pfit_control != intel_lvds->pfit_control || |
383 | pfit_pgm_ratios != intel_lvds->pfit_pgm_ratios) { | 383 | pfit_pgm_ratios != intel_lvds->pfit_pgm_ratios) { |
384 | intel_lvds->pfit_control = pfit_control; | 384 | intel_lvds->pfit_control = pfit_control; |