[PATCH i-g-t] tests/kms_cursor: add debug prints to see which stage fails

Juha-Pekka Heikkila juhapekka.heikkila at gmail.com
Wed Oct 16 11:50:07 UTC 2019


Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
---
 tests/kms_cursor_crc.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tests/kms_cursor_crc.c b/tests/kms_cursor_crc.c
index d0fb8f1..a925620 100644
--- a/tests/kms_cursor_crc.c
+++ b/tests/kms_cursor_crc.c
@@ -261,16 +261,23 @@ static void test_crc_onscreen(data_t *data)
 	int cursor_h = data->curh;
 
 	/* fully inside  */
+	igt_info("\nfully inside\n");
 	do_test(data, left, right, top, bottom);
 
 	/* 2 pixels inside */
+	igt_info("\n2 pixels inside  1\n");
 	do_test(data, left - (cursor_w-2), right + (cursor_w-2), top               , bottom               );
+	igt_info("\n2 pixels inside  2\n");
 	do_test(data, left               , right               , top - (cursor_h-2), bottom + (cursor_h-2));
+	igt_info("\n2 pixels inside  3\n");
 	do_test(data, left - (cursor_w-2), right + (cursor_w-2), top - (cursor_h-2), bottom + (cursor_h-2));
 
 	/* 1 pixel inside */
+	igt_info("\n1 pixel inside  1\n");
 	do_test(data, left - (cursor_w-1), right + (cursor_w-1), top               , bottom               );
+	igt_info("\n1 pixel inside  2\n");
 	do_test(data, left               , right               , top - (cursor_h-1), bottom + (cursor_h-1));
+	igt_info("\n1 pixel inside  3\n");
 	do_test(data, left - (cursor_w-1), right + (cursor_w-1), top - (cursor_h-1), bottom + (cursor_h-1));
 }
 
-- 
2.7.4



More information about the Intel-gfx-trybot mailing list