[igt-dev] [PATCH i-g-t v2 2/2] tests/kms_cursor_crc: Remove unnecessary waits for vblank

Mika Kahola mika.kahola at intel.com
Thu Jan 10 12:51:25 UTC 2019


We don't need to wait for vblanks anymore as kernel atomically takes
care of these.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103232
Signed-off-by: Mika Kahola <mika.kahola at intel.com>
---
 tests/kms_cursor_crc.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/tests/kms_cursor_crc.c b/tests/kms_cursor_crc.c
index 83dbe0b7..4f2f779d 100644
--- a/tests/kms_cursor_crc.c
+++ b/tests/kms_cursor_crc.c
@@ -171,7 +171,6 @@ static void do_single_test(data_t *data, int x, int y)
 
 	igt_display_commit(display);
 
-	igt_wait_for_vblank(data->drm_fd, data->pipe);
 	igt_pipe_crc_start(pipe_crc);
 	igt_pipe_crc_get_single(pipe_crc, &crc);
 
@@ -205,7 +204,6 @@ static void do_single_test(data_t *data, int x, int y)
 	igt_put_cairo_ctx(data->drm_fd, &data->primary_fb, cr);
 	igt_display_commit(display);
 
-	igt_wait_for_vblank(data->drm_fd, data->pipe);
 	igt_pipe_crc_get_current(data->drm_fd, pipe_crc, &ref_crc);
 	igt_assert_crc_equal(&crc, &ref_crc);
 	igt_pipe_crc_stop(pipe_crc);
-- 
2.17.1



More information about the igt-dev mailing list