From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTPS id 546CC6EB6B for ; Wed, 12 May 2021 09:16:28 +0000 (UTC) From: Bhanuprakash Modem Date: Wed, 12 May 2021 22:35:35 +0530 Message-Id: <20210512170536.4778-14-bhanuprakash.modem@intel.com> In-Reply-To: <20210512170536.4778-1-bhanuprakash.modem@intel.com> References: <20210512170536.4778-1-bhanuprakash.modem@intel.com> MIME-Version: 1.0 Subject: [igt-dev] [v6 i-g-t 13/14] tests/kms_flip_scaled_crc: Reset the state before exiting the test List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: igt-dev@lists.freedesktop.org List-ID: Before starting the next subtest, clean up the states to default values, those are assumed by other tests. Cc: Imre Deak Cc: Ankit Nautiyal Cc: Daniel Vetter Signed-off-by: Bhanuprakash Modem --- tests/kms_flip_scaled_crc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/kms_flip_scaled_crc.c b/tests/kms_flip_scaled_crc.c index 4923f1235..671ba7367 100644 --- a/tests/kms_flip_scaled_crc.c +++ b/tests/kms_flip_scaled_crc.c @@ -156,6 +156,7 @@ static void test_flip_to_scaled(data_t *data, uint32_t index, enum pipe pipe, int ret; igt_display_reset(&data->display); + igt_display_commit2(&data->display, COMMIT_ATOMIC); igt_debug("running on output %s pipe %s\n", output->name, kmstest_pipe_name(pipe)); @@ -246,6 +247,10 @@ static void test_flip_to_scaled(data_t *data, uint32_t index, enum pipe pipe, data->pipe_crc = NULL; clear_lut(data, pipe); + + igt_output_set_pipe(output, pipe); + igt_plane_set_fb(primary, NULL); + igt_display_commit2(&data->display, COMMIT_ATOMIC); } igt_main -- 2.20.1 _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev