summaryrefslogtreecommitdiff
path: root/tests/kms_cursor_legacy.c
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2018-07-24 15:59:26 +0200
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2018-08-14 17:35:12 +0200
commit5d1c82954995b36943ed7f812bf9637ce3fbd47d (patch)
treee91cb173cc1d5ad01479869faeefc23fab376293 /tests/kms_cursor_legacy.c
parentdeead1d39368ac11a66f0d9def39f75d1db7e78b (diff)
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 <maarten.lankhorst@linux.intel.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/kms_cursor_legacy.c')
-rw-r--r--tests/kms_cursor_legacy.c3
1 files changed, 1 insertions, 2 deletions
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);