Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5D66A6E1B1 for ; Wed, 19 May 2021 06:44:46 +0000 (UTC) References: <20210512170536.4778-1-bhanuprakash.modem@intel.com> <20210512170536.4778-13-bhanuprakash.modem@intel.com> From: "Nautiyal, Ankit K" Message-ID: Date: Wed, 19 May 2021 12:14:36 +0530 MIME-Version: 1.0 In-Reply-To: <20210512170536.4778-13-bhanuprakash.modem@intel.com> Content-Language: en-US Subject: Re: [igt-dev] [v6 i-g-t 12/14] tests/kms_plane_cursor: 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_plane_cursor.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/tests/kms_plane_cursor.c b/tests/kms_plane_cursor.c > index bc9d42940..9bda47466 100644 > --- a/tests/kms_plane_cursor.c > +++ b/tests/kms_plane_cursor.c > @@ -93,6 +93,10 @@ static void test_fini(data_t *data) > { > igt_pipe_crc_free(data->pipe_crc); > igt_display_reset(&data->display); > + igt_plane_set_fb(data->primary, NULL); > + igt_plane_set_fb(data->overlay, NULL); > + igt_plane_set_fb(data->cursor, NULL); > + igt_display_commit2(&data->display, COMMIT_ATOMIC); > } > > /* Fills a FB with the solid color given. */ _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev