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.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'tests/kms_plane.c') diff --git a/tests/kms_plane.c b/tests/kms_plane.c index f9e123f0..3999dde8 100644 --- a/tests/kms_plane.c +++ b/tests/kms_plane.c @@ -419,11 +419,7 @@ static void test_format_plane_color(data_t *data, enum pipe pipe, igt_plane_set_fb(plane, fb); igt_display_commit2(&data->display, data->display.is_atomic ? COMMIT_ATOMIC : COMMIT_UNIVERSAL); - - /* make sure the crc we get is for the new fb */ - igt_wait_for_vblank(data->drm_fd, pipe); - 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_remove_fb(data->drm_fd, &old_fb); } -- cgit v1.2.3