From: Damien Lespiau Subject: [PATCH i-g-t 2/2] kms_plane: Add a debug message when grabbing the CRC of a colored fb Date: Mon, 7 Jul 2014 18:04:46 +0100 Message-ID: <1404752686-1746-2-git-send-email-damien.lespiau@intel.com> References: <1404752686-1746-1-git-send-email-damien.lespiau@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTP id D83406E469 for ; Mon, 7 Jul 2014 10:06:02 -0700 (PDT) In-Reply-To: <1404752686-1746-1-git-send-email-damien.lespiau@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org Signed-off-by: Damien Lespiau --- tests/kms_plane.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/kms_plane.c b/tests/kms_plane.c index 7437641..5f7bfc0 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); } /* -- 1.8.3.1