From patchwork Thu Jan 14 09:13:30 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 72815 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id o0E9DKUD021680 for ; Thu, 14 Jan 2010 09:13:20 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8B8299E843; Thu, 14 Jan 2010 01:13:18 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail.ffwll.ch (cable-static-49-187.intergga.ch [157.161.49.187]) by gabe.freedesktop.org (Postfix) with ESMTP id 45C369E82D for ; Thu, 14 Jan 2010 01:13:16 -0800 (PST) Received: by mail.ffwll.ch (Postfix, from userid 1000) id 1EE2B20C206; Thu, 14 Jan 2010 10:13:15 +0100 (CET) X-Spam-ASN: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on orange.ffwll.ch X-Spam-Level: X-Spam-Hammy: 0.000-+--struct, 0.000-+--signed-off-by, 0.000-+--signedoffby X-Spam-Status: No, score=-1.2 required=6.0 tests=ALL_TRUSTED,BAYES_00, FH_DATE_PAST_20XX autolearn=no version=3.2.5 X-Spam-Spammy: 0.987-1--H*MI:vetter, 0.987-1--H*MI:daniel, 0.967-+--H*m:ffwll Received: from biene (unknown [192.168.23.129]) by mail.ffwll.ch (Postfix) with ESMTP id 8245320C135; Thu, 14 Jan 2010 10:13:10 +0100 (CET) Received: from daniel by biene with local (Exim 4.71) (envelope-from ) id 1NVLlr-0000zU-CR; Thu, 14 Jan 2010 10:13:40 +0100 From: Daniel Vetter To: intel-gfx@lists.freedesktop.org Date: Thu, 14 Jan 2010 10:13:30 +0100 Message-Id: <1263460410-3778-1-git-send-email-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 1.6.6 Cc: Daniel Vetter Subject: [Intel-gfx] [PATCH] drmmode: unreserve userspace fences 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: , MIME-Version: 1.0 Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org diff --git a/src/drmmode_display.c b/src/drmmode_display.c index b1dee76..7dfc4b3 100644 --- a/src/drmmode_display.c +++ b/src/drmmode_display.c @@ -1384,6 +1384,7 @@ Bool drmmode_pre_init(ScrnInfoPtr scrn, int fd, int cpp) { xf86CrtcConfigPtr xf86_config; drmmode_ptr drmmode; + struct drm_i915_setparam sp; int i; drmmode = xnfalloc(sizeof *drmmode); @@ -1410,6 +1411,11 @@ Bool drmmode_pre_init(ScrnInfoPtr scrn, int fd, int cpp) drmmode_output_init(scrn, drmmode, i); xf86InitialConfiguration(scrn, TRUE); + /* Kernel does all the tiled buffer fencing for us. */ + sp.param = I915_SETPARAM_NUM_USED_FENCES; + sp.value = 0; + drmCommandWrite(drmmode->fd, DRM_I915_SETPARAM, + &sp, sizeof(sp)); return TRUE; }