diff options
author | Bhanuprakash Modem <bhanuprakash.modem@intel.com> | 2021-05-12 22:35:34 +0530 |
---|---|---|
committer | Petri Latvala <petri.latvala@intel.com> | 2021-05-19 10:54:29 +0300 |
commit | 48b21b42b6ad08e98a0c0c4a5145aeed540cfb39 (patch) | |
tree | 5227ccea3dd7ed0fc08ee1a6907ea7744fc1a4e1 /tests | |
parent | cdc2b3b4e4dec29bc1d8cdc2819f10cb30115d37 (diff) |
tests/kms_plane_cursor: Reset the state before exiting the test
Before starting the next subtest, clean up the states to default
values, those are assumed by other tests.
Cc: Imre Deak <imre.deak@intel.com>
Cc: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/kms_plane_cursor.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/kms_plane_cursor.c b/tests/kms_plane_cursor.c index bc9d4294..9bda4746 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. */ |