From 089e8d0a6b4b702ada745e948ae4303fd9457389 Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Wed, 28 May 2014 18:59:09 +0100 Subject: kms_pipe_crc_basic: Add a bit a debugging output Signed-off-by: Damien Lespiau --- tests/kms_pipe_crc_basic.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests/kms_pipe_crc_basic.c') diff --git a/tests/kms_pipe_crc_basic.c b/tests/kms_pipe_crc_basic.c index b48921b6..4089fc3e 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 -- cgit v1.2.3