From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by gabe.freedesktop.org (Postfix) with ESMTPS id 04B5310E13B for ; Tue, 30 May 2023 13:31:15 +0000 (UTC) Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-2af1822b710so46881631fa.1 for ; Tue, 30 May 2023 06:31:15 -0700 (PDT) From: Juha-Pekka Heikkila To: igt-dev@lists.freedesktop.org Date: Tue, 30 May 2023 16:31:09 +0300 Message-Id: <20230530133109.5735-1-juhapekka.heikkila@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t] tests/kms_cursor_crc: Fix special handling for Intel CHV List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: Match software rendering round to what hardware rendering round did on Intel CHV. Signed-off-by: Juha-Pekka Heikkila --- tests/kms_cursor_crc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/kms_cursor_crc.c b/tests/kms_cursor_crc.c index 3a353a03..61a0d65e 100644 --- a/tests/kms_cursor_crc.c +++ b/tests/kms_cursor_crc.c @@ -253,6 +253,10 @@ static void do_single_test(data_t *data, int x, int y, bool hw_test, igt_assert_crc_equal(hwcrc, &crc_after); } } else { + /* If on broken situation on CHV match what hw round did */ + if (chv_cursor_broken(data, x) && cursor_visible(data, x, y)) + return; + /* Now render the same in software and collect crc */ swbufidx = (data->primary->drm_plane->fb_id == data->primary_fb[SWCOMPARISONBUFFER1].fb_id) ? -- 2.25.1