From patchwork Mon Oct 5 21:21:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zanoni, Paulo R" X-Patchwork-Id: 7331851 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 818D6BF90C for ; Mon, 5 Oct 2015 21:21:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 96C5220618 for ; Mon, 5 Oct 2015 21:21:48 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id BC5FC20601 for ; Mon, 5 Oct 2015 21:21:47 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D67AB6E8D1; Mon, 5 Oct 2015 14:21:44 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by gabe.freedesktop.org (Postfix) with ESMTP id 4B3376E8CE for ; Mon, 5 Oct 2015 14:21:43 -0700 (PDT) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP; 05 Oct 2015 14:21:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,640,1437462000"; d="scan'208";a="804262993" Received: from khauck-mobl.amr.corp.intel.com (HELO panetone.amr.corp.intel.com) ([10.254.102.83]) by fmsmga001.fm.intel.com with ESMTP; 05 Oct 2015 14:21:23 -0700 From: Paulo Zanoni To: intel-gfx@lists.freedesktop.org Date: Mon, 5 Oct 2015 18:21:07 -0300 Message-Id: <1444080071-29070-2-git-send-email-paulo.r.zanoni@intel.com> X-Mailer: git-send-email 2.5.3 In-Reply-To: <1444080071-29070-1-git-send-email-paulo.r.zanoni@intel.com> References: <1444080071-29070-1-git-send-email-paulo.r.zanoni@intel.com> Subject: [Intel-gfx] [PATCH igt 2/6] kms_frontbuffer_tracking: change pattern 1's last rect to 1x1 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, T_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 Make sure the tracking mechanism is able to track a write in the very last pixel. Signed-off-by: Paulo Zanoni --- tests/kms_frontbuffer_tracking.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c index 971e3e9..88a7384 100644 --- a/tests/kms_frontbuffer_tracking.c +++ b/tests/kms_frontbuffer_tracking.c @@ -903,10 +903,10 @@ static struct rect pat1_get_rect(struct fb_region *fb, int r) rect.color = pick_color(fb->fb, COLOR_MAGENTA); break; case 3: - rect.x = fb->w - 64; - rect.y = fb->h - 64; - rect.w = 64; - rect.h = 64; + rect.x = fb->w - 1; + rect.y = fb->h - 1; + rect.w = 1; + rect.h = 1; rect.color = pick_color(fb->fb, COLOR_CYAN); break; default: