From 617cbeed2ae71c5560f597db49637df10edd8a52 Mon Sep 17 00:00:00 2001 From: Jesse Barnes Date: Tue, 27 Nov 2007 12:39:09 -0800 Subject: Don't use panel fitter if we're programming a native mode Fix from the DDX driver. --- linux-core/intel_lvds.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'linux-core') 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) -- cgit v1.2.3