From patchwork Fri Nov 19 03:29:57 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Hopf X-Patchwork-Id: 338311 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oAJ3Uatr015572 for ; Fri, 19 Nov 2010 03:30:57 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2F768A0E2E for ; Thu, 18 Nov 2010 19:30:36 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:sender:received:from:to:cc :subject:date:message-id:x-mailer; bh=jdQKV6NOUb3Oo/cCMyVvDQMMbEEWDw2Uoj8pXOCsH20=; b=iS+IguN/3iZlpLIXKAFGuLRaLXTXi7tbKAWC5t8b3Z/g+XDQQ6SrbgX1mADPokTCU+ icy5t82xAVCn6OgwnbEuIuCR/itEw9L6rLvS2YqTK64Yd6qSc9DIWMnXkeAzptF3mSMl 1+jCVlLrJzchKbt/lda9O739fcEOUgEg0fFOw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=sender:from:to:cc:subject:date:message-id:x-mailer; b=O0g2CtbEWLeiXI6Yc59OKIx3RVqzMVooIrDJ2ye+hPvJDU2DSA6UIT93JsqCX4z38K DOWqphxOmDCwQ1kbiUmy9L6etmTEHg69L2vdN5B/KnU/P2rPrrCubT46waOZKT5cowWm 78Sd0eYHIOVTCXpxtN1/r7rw5B1NGOw/OAJnk= Received: by 10.151.103.14 with SMTP id f14mr2584164ybm.319.1290137417430; Thu, 18 Nov 2010 19:30:17 -0800 (PST) Received: from samsung.babylon5 (60-251-160-121.HINET-IP.hinet.net [60.251.160.121]) by mx.google.com with ESMTPS id z4sm743483yhz.1.2010.11.18.19.30.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 18 Nov 2010 19:30:16 -0800 (PST) Received: by samsung.babylon5 (Postfix, from userid 16209) id E39255264B; Fri, 19 Nov 2010 04:30:09 +0100 (CET) From: Matthias Hopf To: intel-gfx@lists.freedesktop.org Date: Fri, 19 Nov 2010 04:29:57 +0100 Message-Id: <1290137397-10786-1-git-send-email-mhopf@suse.de> X-Mailer: git-send-email 1.6.4.2 Subject: [Intel-gfx] [PATCH] Don't use hardware acceleration on Sandybridge rev 07 hardware or earlier. X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Fri, 19 Nov 2010 03:30:57 +0000 (UTC) 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; }