[Intel-gfx] [PATCH 5/6] kms_pipe_crc_basic: Add a bit a debugging output

Damien Lespiau damien.lespiau at intel.com
Wed May 28 20:24:03 CEST 2014


Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>
---
 tests/kms_pipe_crc_basic.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/tests/kms_pipe_crc_basic.c b/tests/kms_pipe_crc_basic.c
index c4abdf7..5727b61 100644
--- a/tests/kms_pipe_crc_basic.c
+++ b/tests/kms_pipe_crc_basic.c
@@ -127,8 +127,13 @@ test_read_crc_for_output(data_t *data, int pipe, igt_output_t *output,
 	int c, j;
 
 	for (c = 0; c < ARRAY_SIZE(colors); c++) {
+		char *crc_str;
+
 		igt_output_set_pipe(output, pipe);
 
+		igt_debug("Clearing the fb with color (%.02lf,%.02lf,%.02lf)\n",
+			  colors[c].r, colors[c].g, colors[c].b);
+
 		mode = igt_output_get_mode(output);
 		igt_create_color_fb(data->drm_fd,
 					mode->hdisplay, mode->vdisplay,
@@ -162,6 +167,10 @@ test_read_crc_for_output(data_t *data, int pipe, igt_output_t *output,
 		 */
 		colors[c].crc = crcs[0];
 
+		crc_str = igt_crc_to_string(&crcs[0]);
+		igt_debug("CRC for this fb: %s\n", crc_str);
+		free(crc_str);
+
 		/*
 		 * make sure the CRC of this fb is different from the ones of
 		 * previous fbs
-- 
1.8.3.1




More information about the Intel-gfx mailing list