From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by gabe.freedesktop.org (Postfix) with ESMTPS id 92B0810EB3D for ; Mon, 28 Mar 2022 14:55:38 +0000 (UTC) From: Maxime Ripard To: igt-dev@lists.freedesktop.org, Petri Latvala , Arkadiusz Hiler Date: Mon, 28 Mar 2022 16:55:09 +0200 Message-Id: <20220328145509.2331195-9-maxime@cerno.tech> In-Reply-To: <20220328145509.2331195-1-maxime@cerno.tech> References: <20220328145509.2331195-1-maxime@cerno.tech> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t v2 8/8] tests/kms_writeback: Use a garbage X value to create fill our test buffer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Pekka Paalanen , Maxime Ripard Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: Since we use buffers in XRGB8888, whatever value we have in X should be ignored by the drivers and the hardware. However, since we always use 0xff in our test, whether that is the case or not cannot be determined. Let's use a garbage value (but consistent across test runs) to make sure it doesn't have any impact on the writeback output. Signed-off-by: Maxime Ripard --- tests/kms_writeback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/kms_writeback.c b/tests/kms_writeback.c index 2366692865b7..4efd99713479 100644 --- a/tests/kms_writeback.c +++ b/tests/kms_writeback.c @@ -293,7 +293,7 @@ static void writeback_sequence(igt_output_t *output, igt_plane_t *plane, igt_fb_t *in_fb, igt_fb_t *out_fbs[], int n_commits) { int i = 0; - uint32_t in_fb_colors[2] = { 0xffff0000, 0xff00ff00 }; + uint32_t in_fb_colors[2] = { 0x42ff0000, 0x4200ff00 }; uint32_t clear_color = 0xffffffff; igt_crc_t cleared_crc, out_expected; -- 2.35.1