From 5d1c82954995b36943ed7f812bf9637ce3fbd47d Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst Date: Tue, 24 Jul 2018 15:59:26 +0200 Subject: tests: Replace calls to igt_pipe_crc_drain + get_single with igt_pipe_crc_get_current() This is a more race free of accomplishing the same. Signed-off-by: Maarten Lankhorst Reviewed-by: Daniel Vetter --- tests/kms_plane_multiple.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/kms_plane_multiple.c') diff --git a/tests/kms_plane_multiple.c b/tests/kms_plane_multiple.c index e61bc846..a53be001 100644 --- a/tests/kms_plane_multiple.c +++ b/tests/kms_plane_multiple.c @@ -276,8 +276,7 @@ test_plane_position_with_output(data_t *data, enum pipe pipe, igt_display_commit2(&data->display, COMMIT_ATOMIC); - igt_pipe_crc_drain(data->pipe_crc); - igt_pipe_crc_get_single(data->pipe_crc, &crc); + igt_pipe_crc_get_current(data->display.drm_fd, data->pipe_crc, &crc); igt_assert_crc_equal(&data->ref_crc, &crc); -- cgit v1.2.3