From patchwork Mon Jul 22 06:44:39 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher James Halse Rogers X-Patchwork-Id: 2831078 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 681FFC0319 for ; Mon, 22 Jul 2013 06:45:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8CB3920151 for ; Mon, 22 Jul 2013 06:45:08 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 67D1F2011B for ; Mon, 22 Jul 2013 06:45:07 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7EC2EE5EA0 for ; Sun, 21 Jul 2013 23:45:06 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from youngberry.canonical.com (youngberry.canonical.com [91.189.89.112]) by gabe.freedesktop.org (Postfix) with ESMTP id BE4B5E5CDA for ; Sun, 21 Jul 2013 23:44:49 -0700 (PDT) Received: from ppp105-211.static.internode.on.net ([150.101.105.211] helo=Swordfish.fritz.box) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1V19rT-0002D9-Ps; Mon, 22 Jul 2013 06:44:48 +0000 From: christopher.halse.rogers@canonical.com To: intel-gfx@lists.freedesktop.org Date: Mon, 22 Jul 2013 16:44:39 +1000 Message-Id: <1374475480-7255-1-git-send-email-christopher.halse.rogers@canonical.com> X-Mailer: git-send-email 1.8.3.2 Cc: Christopher James Halse Rogers Subject: [Intel-gfx] [PATCH 1/2] sna: Call EnterVT from sna_screen_init. X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.13 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-Spam-Status: No, score=-5.6 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 From: Christopher James Halse Rogers It's documented to do so. It might as well. --- src/sna/sna_driver.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/sna/sna_driver.c b/src/sna/sna_driver.c index b48ab30..de1384d 100644 --- a/src/sna/sna_driver.c +++ b/src/sna/sna_driver.c @@ -936,6 +936,8 @@ agp_aperture_size(struct pci_device *dev, int gen) return dev->regions[gen < 030 ? 0 : 2].size; } +static Bool sna_enter_vt(VT_FUNC_ARGS_DECL); + static Bool sna_screen_init(SCREEN_INIT_ARGS_DECL) { @@ -1072,7 +1074,7 @@ sna_screen_init(SCREEN_INIT_ARGS_DECL) sna_uevent_init(scrn); - return TRUE; + return sna_enter_vt(VT_FUNC_ARGS(0)); } static void sna_adjust_frame(ADJUST_FRAME_ARGS_DECL)