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_cursor_legacy.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/kms_cursor_legacy.c') diff --git a/tests/kms_cursor_legacy.c b/tests/kms_cursor_legacy.c index 85340d43..82ceebcb 100644 --- a/tests/kms_cursor_legacy.c +++ b/tests/kms_cursor_legacy.c @@ -1334,8 +1334,7 @@ static void flip_vs_cursor_busy_crc(igt_display_t *display, bool atomic) igt_assert_eq(get_vblank(display->drm_fd, pipe, 0), vblank_start); - igt_pipe_crc_drain(pipe_crc); - igt_pipe_crc_get_single(pipe_crc, &test_crc); + igt_pipe_crc_get_current(display->drm_fd, pipe_crc, &test_crc); igt_spin_batch_free(display->drm_fd, spin); -- cgit v1.2.3