From patchwork Mon Feb 29 14:47:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans de Goede X-Patchwork-Id: 8454821 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7C2009F372 for ; Mon, 29 Feb 2016 14:47:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AA0AF20279 for ; Mon, 29 Feb 2016 14:47:23 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 844BD20263 for ; Mon, 29 Feb 2016 14:47:22 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4851A6E04C; Mon, 29 Feb 2016 14:47:21 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by gabe.freedesktop.org (Postfix) with ESMTPS id 31BA46E04C for ; Mon, 29 Feb 2016 14:47:20 +0000 (UTC) Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id C7FFA8553B for ; Mon, 29 Feb 2016 14:47:19 +0000 (UTC) Received: from shalem.localdomain.com (vpn1-4-70.ams2.redhat.com [10.36.4.70]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u1TElGlZ021321; Mon, 29 Feb 2016 09:47:17 -0500 From: Hans de Goede To: intel-gfx@lists.freedesktop.org Date: Mon, 29 Feb 2016 15:47:13 +0100 Message-Id: <1456757233-14697-1-git-send-email-hdegoede@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26 Cc: Hans de Goede , Rob Clark , Adam Jackson Subject: [Intel-gfx] [RFC/PATCH xf86-video-intel] sna: Let modestting + glamor handle gen9+ X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP sna has no meaningfull accel for gen9+, this causes problems with i.e. apps using XVideo since the sprite XVideo support does not work well for many apps. Therefor it is better to just let the xserver fall back to modesetting + glamor. This is implemented by returning FALSE from the probe methods, just like how nouveau handles falling back to modesetting for newer cards. BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1305369 Signed-off-by: Hans de Goede --- src/intel_module.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/intel_module.c b/src/intel_module.c index 60835b9..5979cb9 100644 --- a/src/intel_module.c +++ b/src/intel_module.c @@ -571,6 +571,13 @@ intel_scrn_create(DriverPtr driver, return FALSE; } + /* + * We've no accel support for these, so let modesetting + glamor + * handle them. + */ + if ((unsigned)((struct intel_device_info *)match_data)->gen >= 0110) + return FALSE; + scrn = xf86AllocateScreen(driver, flags); if (scrn == NULL) return FALSE;