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

Submitted by Kahola, Mika on Jan. 10, 2019, 12:51 p.m.

Details

Message ID 20190110125125.26374-3-mika.kahola@intel.com
State New
Series "tests/kms_cursor_crc: Change crc collection"
Headers show

Commit Message

Kahola, Mika Jan. 10, 2019, 12:51 p.m.
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@intel.com>
---
 tests/kms_cursor_crc.c | 2 --
 1 file changed, 2 deletions(-)

Patch hide | download patch | download mbox

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);