From: Matthias Hopf Subject: [PATCH] Don't use hardware acceleration on Sandybridge rev 07 hardware or earlier. Date: Fri, 19 Nov 2010 04:29:57 +0100 Message-ID: <1290137397-10786-1-git-send-email-mhopf@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-gw0-f49.google.com (mail-gw0-f49.google.com [74.125.83.49]) by gabe.freedesktop.org (Postfix) with ESMTP id 224D19E792 for ; Thu, 18 Nov 2010 19:30:18 -0800 (PST) Received: by gwb11 with SMTP id 11so2585019gwb.36 for ; Thu, 18 Nov 2010 19:30:17 -0800 (PST) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org This is known to lock up the GPU even with the workaround in place. Signed-off-by: Matthias Hopf --- src/intel_driver.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/intel_driver.c b/src/intel_driver.c index 926c7e3..be41712 100644 --- a/src/intel_driver.c +++ b/src/intel_driver.c @@ -482,6 +482,13 @@ static Bool can_accelerate_2d(struct intel_screen_private *intel) if (drmIoctl(intel->drmSubFD, DRM_IOCTL_I915_GETPARAM, &gp)) return FALSE; } + if (INTEL_INFO(intel)->gen == 60) { + struct pci_device *const device = intel->PciInfo; + /* Sandybridge rev07 locks up easily, even with the workaround + * in place. Thus use shadowfb by default. */ + if (device->revision < 8) + return FALSE; + } return TRUE; } -- 1.6.4.2