Don't use panel fitter if we're programming a native mode
authorJesse Barnes <jesse.barnes@intel.com>
Tue, 27 Nov 2007 20:39:09 +0000 (12:39 -0800)
committerJesse Barnes <jesse.barnes@intel.com>
Tue, 27 Nov 2007 20:41:05 +0000 (12:41 -0800)
Fix from the DDX driver.

linux-core/intel_lvds.c

index 4f15c13..e3e4b38 100644 (file)
@@ -255,8 +255,13 @@ static void intel_lvds_mode_set(struct drm_output *output,
         * screen.  Should be enabled before the pipe is enabled, according to
         * register description and PRM.
         */
-       pfit_control = (PFIT_ENABLE | VERT_AUTO_SCALE | HORIZ_AUTO_SCALE |
-                       VERT_INTERP_BILINEAR | HORIZ_INTERP_BILINEAR);
+       if (mode->hdisplay != adjusted_mode->hdisplay ||
+           mode->vdisplay != adjusted_mode->vdisplay)
+               pfit_control = (PFIT_ENABLE | VERT_AUTO_SCALE |
+                               HORIZ_AUTO_SCALE | VERT_INTERP_BILINEAR |
+                               HORIZ_INTERP_BILINEAR);
+       else
+               pfit_control = 0;
 
        if (!IS_I965G(dev)) {
                if (dev_priv->panel_wants_dither)