summaryrefslogtreecommitdiff
path: root/tests/kms_plane_lowres.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/kms_plane_lowres.c')
-rw-r--r--tests/kms_plane_lowres.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/kms_plane_lowres.c b/tests/kms_plane_lowres.c
index d1e4b3ca..5e83ef56 100644
--- a/tests/kms_plane_lowres.c
+++ b/tests/kms_plane_lowres.c
@@ -221,8 +221,7 @@ test_plane_position_with_output(data_t *data, enum pipe pipe,
check_mode(&mode_lowres, mode2);
igt_display_commit2(&data->display, COMMIT_ATOMIC);
- igt_pipe_crc_drain(pipe_crc);
- igt_pipe_crc_get_single(pipe_crc, &crc_lowres);
+ igt_pipe_crc_get_current(data->display.drm_fd, pipe_crc, &crc_lowres);
igt_assert_plane_visible(data->drm_fd, pipe, false);
@@ -236,8 +235,7 @@ test_plane_position_with_output(data_t *data, enum pipe pipe,
igt_display_commit2(&data->display, COMMIT_ATOMIC);
- igt_pipe_crc_drain(pipe_crc);
- igt_pipe_crc_get_single(pipe_crc, &crc_hires2);
+ igt_pipe_crc_get_current(data->display.drm_fd, pipe_crc, &crc_hires2);
igt_assert_plane_visible(data->drm_fd, pipe, true);