diff options
author | Paul Kocialkowski <paul.kocialkowski@bootlin.com> | 2018-12-27 15:57:40 +0100 |
---|---|---|
committer | Arkadiusz Hiler <arkadiusz.hiler@intel.com> | 2018-12-31 10:12:33 +0200 |
commit | e144eef095f33541f139744a384649a4ee688468 (patch) | |
tree | 56c544be0080088bad37becee133e8d328751bfb /lib/igt_chamelium.c | |
parent | d28cca3902e027ad5a8e07b51ae9535f84f7e315 (diff) |
chamelium: Debug-print CRCs when comparing them and dumping frames
Add debug prints for the reference and captured CRCs when comparing them
and dumping them, which can be useful to get an idea of what is going on
(e.g. specific noise on display cables often only changes one of the
values that compose the CRC).
It's also useful to associate a test debug output with the dumped
pictures (that have the CRC in their name).
Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Reviewed-by: Maxime Ripard <maxime.ripard@bootlin.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Diffstat (limited to 'lib/igt_chamelium.c')
-rw-r--r-- | lib/igt_chamelium.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/igt_chamelium.c b/lib/igt_chamelium.c index d136fb04..32b859ea 100644 --- a/lib/igt_chamelium.c +++ b/lib/igt_chamelium.c @@ -1033,6 +1033,9 @@ void chamelium_assert_crc_eq_or_dump(struct chamelium *chamelium, char *capture_suffix; bool eq; + igt_debug("Reference CRC: %s\n", igt_crc_to_string(reference_crc)); + igt_debug("Captured CRC: %s\n", igt_crc_to_string(capture_crc)); + eq = igt_check_crc_equal(reference_crc, capture_crc); if (!eq && igt_frame_dump_is_enabled()) { /* Grab the reference frame from framebuffer */ @@ -1101,6 +1104,10 @@ void chamelium_assert_analog_frame_match_or_dump(struct chamelium *chamelium, capture_crc = chamelium_get_crc_for_area(chamelium, port, 0, 0, 0, 0); + igt_debug("Reference CRC: %s\n", + igt_crc_to_string(reference_crc)); + igt_debug("Captured CRC: %s\n", igt_crc_to_string(capture_crc)); + reference_suffix = igt_crc_to_string_extended(reference_crc, '-', 2); capture_suffix = igt_crc_to_string_extended(capture_crc, '-', |