[igt-dev] [v6 i-g-t 12/14] tests/kms_plane_cursor: Reset the state before exiting the test

Nautiyal, Ankit K ankit.k.nautiyal at intel.com
Wed May 19 06:44:36 UTC 2021


LGTM.

Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal at intel.com>

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 <imre.deak at intel.com>
> Cc: Ankit Nautiyal <ankit.k.nautiyal at intel.com>
> Cc: Daniel Vetter <daniel.vetter at ffwll.ch>
> Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
> ---
>   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. */


More information about the igt-dev mailing list