Return-Path: Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8D2876E5CF for ; Mon, 26 Apr 2021 10:31:49 +0000 (UTC) From: Bhanuprakash Modem Date: Mon, 26 Apr 2021 23:51:36 +0530 Message-Id: <20210426182136.2815-15-bhanuprakash.modem@intel.com> In-Reply-To: <20210426182136.2815-1-bhanuprakash.modem@intel.com> References: <20210426182136.2815-1-bhanuprakash.modem@intel.com> MIME-Version: 1.0 Subject: [igt-dev] [v3 i-g-t 14/14] tests/kms_vblank: 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_vblank.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/kms_vblank.c b/tests/kms_vblank.c index e561e41d7..9a9ce48ea 100644 --- a/tests/kms_vblank.c +++ b/tests/kms_vblank.c @@ -96,6 +96,8 @@ static void prepare_crtc(data_t *data, int fd, igt_output_t *output) static void cleanup_crtc(data_t *data, int fd, igt_output_t *output) { + igt_output_set_pipe(output, data->pipe); + igt_display_commit(&data->display); igt_remove_fb(fd, &data->primary_fb); } -- 2.20.1 _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev