summaryrefslogtreecommitdiff
path: root/tests/kms_cursor_edge_walk.c
diff options
context:
space:
mode:
authorBhanuprakash Modem <bhanuprakash.modem@intel.com>2021-05-12 22:35:32 +0530
committerPetri Latvala <petri.latvala@intel.com>2021-05-19 10:54:29 +0300
commit5c4ef2e5b704eb2b84667d6f2010fae4e8bc3f45 (patch)
tree39272bba267b39c77fea6859eb22ea177df119e6 /tests/kms_cursor_edge_walk.c
parent2d53e76146b633fca21d2b520c1e2f50fe6659d1 (diff)
tests/kms_cursor_edge_walk: 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/kms_cursor_edge_walk.c')
-rw-r--r--tests/kms_cursor_edge_walk.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/kms_cursor_edge_walk.c b/tests/kms_cursor_edge_walk.c
index 69662afe..d1d8a914 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)