From patchwork Thu Aug 6 15:12:39 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmVuw4PCqSBHYWJyacODwqtscw==?= X-Patchwork-Id: 39630 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n76FCii0007910 for ; Thu, 6 Aug 2009 15:12:44 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1AEEFA0256; Thu, 6 Aug 2009 08:12:44 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from ey-out-1920.google.com (ey-out-1920.google.com [74.125.78.150]) by gabe.freedesktop.org (Postfix) with ESMTP id C164E9E82A for ; Thu, 6 Aug 2009 08:12:41 -0700 (PDT) Received: by ey-out-1920.google.com with SMTP id 13so321720eye.12 for ; Thu, 06 Aug 2009 08:12:40 -0700 (PDT) Received: by 10.210.20.17 with SMTP id 17mr12214434ebt.80.1249571560855; Thu, 06 Aug 2009 08:12:40 -0700 (PDT) Received: from ?131.155.70.201? (dyn242.win.tue.nl [131.155.70.201]) by mx.google.com with ESMTPS id 5sm543117eyf.8.2009.08.06.08.12.40 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 06 Aug 2009 08:12:40 -0700 (PDT) Message-ID: <4A7AF2E7.2030409@gmail.com> Date: Thu, 06 Aug 2009 17:12:39 +0200 From: =?ISO-8859-1?Q?Ren=E9_Gabri=EBls?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2 MIME-Version: 1.0 To: intel-gfx@lists.freedesktop.org Subject: [Intel-gfx] Patch to fix fdo bug #21064 X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.9 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org The attached patch fixes my garbled screen issue on my Intel 855GM notebook. For some reason the VGA_2X_MODE bit in the VGACNTRL register is set to 1 on my machine, causing the video chip to scale up the framebuffer, which results in a funky screen. In the patch I forced this bit to zero and the problem is gone. I'm not sure if there's anybody who's actually using this 2X_MODE on an 855GM. However, before this bug was introduced (git: db9f5915ce812144ffd9d2aa42e8ba856129c35e), this bit was forced to zero as well. - René diff --git a/src/i830_display.c b/src/i830_display.c index 59ededc..d180b2b 100644 --- a/src/i830_display.c +++ b/src/i830_display.c @@ -1096,6 +1096,10 @@ i830_disable_vga_plane (xf86CrtcPtr crtc) vgacntrl |= VGA_DISP_DISABLE; + /* disable "VGA/Pop-up 2X Centered Mode Scaling" on 855GM platform */ + if (IS_I855(pI830)) + vgacntrl &= ~VGA_2X_MODE; + OUTREG(VGACNTRL, vgacntrl); i830WaitForVblank(pScrn);