diff options
Diffstat (limited to 'tests/kms_sequence.c')
-rw-r--r-- | tests/kms_sequence.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/kms_sequence.c b/tests/kms_sequence.c index 9c287480..ca25e041 100644 --- a/tests/kms_sequence.c +++ b/tests/kms_sequence.c @@ -77,6 +77,8 @@ static void prepare_crtc(data_t *data, int fd, igt_output_t *output) igt_display_t *display = &data->display; igt_plane_t *primary; + igt_display_reset(&data->display); + /* select the pipe we want to use */ igt_output_set_pipe(output, data->pipe); @@ -109,8 +111,8 @@ static void cleanup_crtc(data_t *data, int fd, igt_output_t *output) primary = igt_output_get_plane_type(output, DRM_PLANE_TYPE_PRIMARY); igt_plane_set_fb(primary, NULL); - igt_output_set_pipe(output, PIPE_ANY); - igt_display_commit(display); + igt_output_set_pipe(output, PIPE_NONE); + igt_display_commit2(display, display->is_atomic ? COMMIT_ATOMIC : COMMIT_LEGACY); } static int crtc_get_sequence(int fd, struct drm_crtc_get_sequence *cgs) |