mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-21 05:13:47 +00:00
lib/debugfs: wait_for_keypress("crc") when collecting CRC
Let's just steal the "crc" namespace and add this by default to igt_pipe_crc_collect_crc() instead of adding more calls to other tests. If tests want special waits on just some of their collect_crc() calls, they can use another name instead of "crc". This is very useful when developing, especially when the CRC we get is wrong: we want to look at the screen to see what's going on before we can think about how to fix the problem. So let's add this to the lib instead of adding this to every single test I need to debug. v2: Add some documentation (Daniel). Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
This commit is contained in:
@@ -102,7 +102,6 @@ static void get_method_crc(enum igt_draw_method method, uint64_t tiling,
|
||||
&ms.connector_id, 1, ms.mode);
|
||||
igt_assert(rc == 0);
|
||||
|
||||
igt_debug_wait_for_keypress("crc");
|
||||
igt_pipe_crc_collect_crc(pipe_crc, crc);
|
||||
|
||||
kmstest_unset_all_crtcs(drm_fd, drm_res);
|
||||
@@ -144,7 +143,6 @@ static void get_fill_crc(uint64_t tiling, igt_crc_t *crc)
|
||||
&ms.connector_id, 1, ms.mode);
|
||||
igt_assert(rc == 0);
|
||||
|
||||
igt_debug_wait_for_keypress("crc");
|
||||
igt_pipe_crc_collect_crc(pipe_crc, crc);
|
||||
|
||||
kmstest_unset_all_crtcs(drm_fd, drm_res);
|
||||
@@ -171,7 +169,6 @@ static void fill_fb_subtest(void)
|
||||
&ms.connector_id, 1, ms.mode);
|
||||
igt_assert(rc == 0);
|
||||
|
||||
igt_debug_wait_for_keypress("crc");
|
||||
igt_pipe_crc_collect_crc(pipe_crc, &base_crc);
|
||||
|
||||
get_fill_crc(LOCAL_DRM_FORMAT_MOD_NONE, &crc);
|
||||
|
||||
@@ -330,8 +330,6 @@ test_plane_panning_with_output(data_t *data,
|
||||
|
||||
igt_pipe_crc_collect_crc(data->pipe_crc, &crc);
|
||||
|
||||
igt_debug_wait_for_keypress("crc");
|
||||
|
||||
if (flags & TEST_PANNING_TOP_LEFT)
|
||||
igt_assert_crc_equal(&test.red_crc, &crc);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user