summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorJesse Barnes <jesse.barnes@intel.com>2007-11-27 12:39:09 -0800
committerJesse Barnes <jesse.barnes@intel.com>2007-11-27 12:41:05 -0800
commit617cbeed2ae71c5560f597db49637df10edd8a52 (patch)
tree6e649a672bab1b4e5a862e29908d4e13b0a1b714 /linux-core
parentb3af2b59a77a6916ea7151236d3da9bde6a537fc (diff)
Don't use panel fitter if we're programming a native mode
Fix from the DDX driver.
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/intel_lvds.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/linux-core/intel_lvds.c b/linux-core/intel_lvds.c
index 4f15c13a..e3e4b38a 100644
--- a/linux-core/intel_lvds.c
+++ b/linux-core/intel_lvds.c
@@ -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)