Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by gabe.freedesktop.org (Postfix) with ESMTPS id BE3C06E082 for ; Tue, 7 Sep 2021 17:56:15 +0000 (UTC) From: =?UTF-8?q?Jos=C3=A9=20Roberto=20de=20Souza?= Date: Tue, 7 Sep 2021 11:01:29 -0700 Message-Id: <20210907180130.43156-3-jose.souza@intel.com> In-Reply-To: <20210907180130.43156-1-jose.souza@intel.com> References: <20210907180130.43156-1-jose.souza@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t v2 3/4] test/kms_frontbuffer_tracking: Fix multidraw test List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: igt-dev@lists.freedesktop.org Cc: Gwan-gyeong Mun , =?UTF-8?q?Jos=C3=A9=20Roberto=20de=20Souza?= List-ID: Multidraw tests was not notifying driver about the area it uses blitter to pain the primary background color between drawing methods. Without this notification driver will not update pipe and the CRC will not update causing the tests fail due a CRC mismatch. All the other callers of fill_fb_region() are safe, doing a page flip or a atomic commit afterwards. Reviewed-by: Gwan-gyeong Mun Cc: Gwan-gyeong Mun Signed-off-by: José Roberto de Souza --- tests/kms_frontbuffer_tracking.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c index 496718e2a..574048537 100644 --- a/tests/kms_frontbuffer_tracking.c +++ b/tests/kms_frontbuffer_tracking.c @@ -1123,6 +1123,17 @@ static void fill_fb_region(struct fb_region *region, enum color ecolor) color); } +static void _fb_dirty_ioctl(struct fb_region *region) +{ + struct rect rect; + + rect.x = region->x; + rect.y = region->y; + rect.w = region->w; + rect.h = region->h; + fb_dirty_ioctl(region, &rect); +} + static void unset_all_crtcs(void) { igt_display_reset(&drm.display); @@ -2122,6 +2133,7 @@ static void multidraw_subtest(const struct test_mode *t) } fill_fb_region(target, COLOR_PRIM_BG); + _fb_dirty_ioctl(target); update_wanted_crc(t, &blue_crcs[t->format].crc); do_assertions(ASSERT_NO_ACTION_CHANGE); -- 2.33.0