summaryrefslogtreecommitdiff
path: root/tests/kms_plane.c
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2014-07-07 14:41:15 +0100
committerDamien Lespiau <damien.lespiau@intel.com>2014-07-07 18:27:14 +0100
commit8d60b8267e97f9b04e42912262c170c473d4f061 (patch)
tree59c967554468eb606d9c10bebaf0eabeed7ce2c5 /tests/kms_plane.c
parentb5333b416f6a206a583684b0fba9265c0badbd6c (diff)
kms_plane: Add a debug message when grabbing the CRC of a colored fb
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Diffstat (limited to 'tests/kms_plane.c')
-rw-r--r--tests/kms_plane.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/kms_plane.c b/tests/kms_plane.c
index 7437641b..5f7bfc05 100644
--- a/tests/kms_plane.c
+++ b/tests/kms_plane.c
@@ -69,6 +69,7 @@ test_grab_crc(data_t *data, igt_output_t *output, color_t *fb_color,
struct igt_fb fb;
drmModeModeInfo *mode;
igt_plane_t *primary;
+ char *crc_str;
primary = igt_output_get_plane(output, 0);
@@ -88,6 +89,11 @@ test_grab_crc(data_t *data, igt_output_t *output, color_t *fb_color,
igt_display_commit(&data->display);
igt_remove_fb(data->drm_fd, &fb);
+
+ crc_str = igt_crc_to_string(crc);
+ igt_debug("CRC for a (%.02f,%.02f,%.02f) fb: %s\n", fb_color->red,
+ fb_color->green, fb_color->blue, crc_str);
+ free(crc_str);
}
/*