diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-02-27 20:24:15 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-03-23 11:02:28 +0100 |
commit | 4fec18e5e0cbbf384b8a49febd9dc650f2712bad (patch) | |
tree | 9ed8b28680fd2d164ead33ee4e6be8ef3337140f /tests/kms_cursor_crc.c | |
parent | e7d26df4198af40c92292cb4209fd803fa02062f (diff) |
lib/core: add interactive debug point to igt_fail
Useful for inspecting the screen state in kms tests when they fail.
Also move the screen clearing in kms_cursor_crc to the bottom.
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Diffstat (limited to 'tests/kms_cursor_crc.c')
-rw-r--r-- | tests/kms_cursor_crc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/kms_cursor_crc.c b/tests/kms_cursor_crc.c index fca82487..d5b681a0 100644 --- a/tests/kms_cursor_crc.c +++ b/tests/kms_cursor_crc.c @@ -130,13 +130,14 @@ static void do_single_test(data_t *data, int x, int y) /* Now render the same in software and collect crc */ draw_cursor(cr, x, y, data->curw, data->curh); igt_display_commit(display); + igt_wait_for_vblank(data->drm_fd, data->pipe); igt_pipe_crc_collect_crc(pipe_crc, &ref_crc); /* Clear screen afterwards */ + igt_assert(igt_crc_equal(&crc, &ref_crc)); + igt_paint_color(cr, 0, 0, data->screenw, data->screenh, 0.0, 0.0, 0.0); - - igt_assert(igt_crc_equal(&crc, &ref_crc)); } static void do_fail_test(data_t *data, int x, int y, int expect) |