From patchwork Fri Mar 19 16:21:48 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li Peng X-Patchwork-Id: 86895 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o2J8LsAH032494 for ; Fri, 19 Mar 2010 08:22:30 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9E0929EF1F; Fri, 19 Mar 2010 01:21:53 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from azsmga102.ch.intel.com (mga12.intel.com [143.182.124.36]) by gabe.freedesktop.org (Postfix) with ESMTP id 635099E8C0 for ; Fri, 19 Mar 2010 01:21:51 -0700 (PDT) Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga102.ch.intel.com with ESMTP; 19 Mar 2010 01:21:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.51,273,1267430400"; d="scan'208";a="256492273" Received: from unknown (HELO pli1.bj.intel.com) ([172.16.180.102]) by azsmga001.ch.intel.com with ESMTP; 19 Mar 2010 01:21:49 -0700 Date: Sat, 20 Mar 2010 00:21:48 +0800 From: Li Peng To: intel-gfx@lists.freedesktop.org Message-ID: <20100319162148.GA20084@pli1.bj.intel.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-08-17) Subject: [Intel-gfx] [PATCH] Initialize flip_count before using it 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: , Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Fri, 19 Mar 2010 08:22:30 +0000 (UTC) diff --git a/src/drmmode_display.c b/src/drmmode_display.c index ae200ca..0172a2e 100644 --- a/src/drmmode_display.c +++ b/src/drmmode_display.c @@ -1464,6 +1464,7 @@ Bool drmmode_pre_init(ScrnInfoPtr scrn, int fd, int cpp) xf86DrvMsg(scrn->scrnIndex, X_INFO, "Kernel page flipping support detected, enabling\n"); intel->use_pageflipping = TRUE; + drmmode->flip_count = 0; drmmode->event_context.version = DRM_EVENT_CONTEXT_VERSION; drmmode->event_context.vblank_handler = drmmode_vblank_handler; drmmode->event_context.page_flip_handler =