From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3707D6E859 for ; Wed, 19 May 2021 05:50:26 +0000 (UTC) References: <20210512170536.4778-1-bhanuprakash.modem@intel.com> <20210512170536.4778-11-bhanuprakash.modem@intel.com> From: "Nautiyal, Ankit K" Message-ID: <8659fced-2dc6-d12e-3be2-08e1f4f637e5@intel.com> Date: Wed, 19 May 2021 11:20:21 +0530 MIME-Version: 1.0 In-Reply-To: <20210512170536.4778-11-bhanuprakash.modem@intel.com> Content-Language: en-US Subject: Re: [igt-dev] [v6 i-g-t 10/14] tests/kms_cursor_edge_walk: Reset the state before exiting the test List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: Bhanuprakash Modem , igt-dev@lists.freedesktop.org List-ID: LGTM. Reviewed-by: Ankit Nautiyal On 5/12/2021 10:35 PM, Bhanuprakash Modem wrote: > 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_cursor_edge_walk.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/tests/kms_cursor_edge_walk.c b/tests/kms_cursor_edge_walk.c > index 69662afec..d1d8a9143 100644 > --- a/tests/kms_cursor_edge_walk.c > +++ b/tests/kms_cursor_edge_walk.c > @@ -225,6 +225,7 @@ static void cleanup_crtc(data_t *data) > > igt_remove_fb(data->drm_fd, &data->primary_fb); > igt_remove_fb(data->drm_fd, &data->fb); > + igt_display_commit2(display, display->is_atomic ? COMMIT_ATOMIC : COMMIT_LEGACY); > } > > static void prepare_crtc(data_t *data) > @@ -268,6 +269,8 @@ static void test_crtc(data_t *data, unsigned int edges) > create_cursor_fb(data, data->curw, data->curh); > > test_edges(data, edges); > + > + cleanup_crtc(data); > } > > static int opt_handler(int opt, int opt_index, void *_data) _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev