From patchwork Fri Aug 5 04:47:25 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: hai.lan@intel.com X-Patchwork-Id: 1036342 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p74FubeV018936 for ; Thu, 4 Aug 2011 15:56:57 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 73C3D9F4DC for ; Thu, 4 Aug 2011 08:56:37 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTP id B94199E925 for ; Thu, 4 Aug 2011 08:56:19 -0700 (PDT) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 04 Aug 2011 08:56:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.67,317,1309762800"; d="scan'208";a="35404992" Received: from unknown (HELO lanhai-test.sh.intel.com) ([10.239.36.69]) by orsmga001.jf.intel.com with ESMTP; 04 Aug 2011 08:56:18 -0700 From: Hai Lan To: intel-gfx@lists.freedesktop.org Date: Fri, 5 Aug 2011 00:47:25 -0400 Message-Id: <1312519645-9908-1-git-send-email-hai.lan@intel.com> X-Mailer: git-send-email 1.7.3.4 Subject: [Intel-gfx] [PATCH] testdisplay: for tiled mode test, the height should be aligned 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.6 (demeter2.kernel.org [140.211.167.43]); Thu, 04 Aug 2011 15:56:57 +0000 (UTC) Signed-off-by: Hai Lan --- tests/testdisplay.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tests/testdisplay.c b/tests/testdisplay.c index dae52ca..1d85acd 100644 --- a/tests/testdisplay.c +++ b/tests/testdisplay.c @@ -414,7 +414,7 @@ allocate_surface(int fd, int width, int height, uint32_t depth, uint32_t bpp, if (tiled) { stride = (width * (bpp / 8) + 511) & ~511; - size = stride * height; + size = stride * (height + 7) & ~7; } else { /* Scan-out has a 64 byte alignment restriction */ stride = (width * (bpp / 8) + 63) & ~63;