]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
drm/i915: Clear any existing dither mode prior to enabling spatial dithering
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 25 Jul 2010 22:09:13 +0000 (23:09 +0100)
committerEric Anholt <eric@anholt.net>
Mon, 26 Jul 2010 17:46:07 +0000 (10:46 -0700)
We cannot the initial configuration set by the BIOS not to have a dither
mode enabled which conflicts with our enabling the Spatial Temporal 1
dither mode for PCH. In particular, the BIOS may either enable temporal
dithering or the Spatial Temporal 2 with the result that we enable pure
temporal dithering. Temporal dithering looks bad and is perceived as a
flicker.

Fixes:

  Bug 29248 - [Arrandale] Annoying flicker on internal panel, goes away
              after suspend to RAM
  https://bugs.freedesktop.org/show_bug.cgi?id=29248

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/intel_display.c

index ab8162afb4a70e93345c0a9551f39c0f70ca3eb6..445fdafc131f4d8cce967e2c2b1e1cdc929692cd 100644 (file)
@@ -3736,6 +3736,7 @@ static int intel_crtc_mode_set(struct drm_crtc *crtc,
                        if (dev_priv->lvds_dither) {
                                if (HAS_PCH_SPLIT(dev)) {
                                        pipeconf |= PIPE_ENABLE_DITHER;
+                                       pipeconf &= ~PIPE_DITHER_TYPE_MASK;
                                        pipeconf |= PIPE_DITHER_TYPE_ST01;
                                } else
                                        lvds |= LVDS_ENABLE_DITHER;