From 5e4e8295e1c89fb33cbc84de11aaa30abba6f4f9 Mon Sep 17 00:00:00 2001 From: Paul Kocialkowski Date: Wed, 19 Jul 2017 16:46:09 +0300 Subject: chamelium: Dump captured and reference frames to png on crc error This adds support for dumping both the frame capture from the chamelium and the reference frame generated by cairo when the captured crc does not match the crc calculated from the reference, using common helpers. Getting a dump of the frames is quite useful in order to compare them. Signed-off-by: Paul Kocialkowski Reviewed-by: Lyude --- lib/igt_chamelium.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/igt_chamelium.h') diff --git a/lib/igt_chamelium.h b/lib/igt_chamelium.h index 2bfbfdc7..80afcafa 100644 --- a/lib/igt_chamelium.h +++ b/lib/igt_chamelium.h @@ -105,6 +105,10 @@ int chamelium_get_frame_limit(struct chamelium *chamelium, void chamelium_assert_frame_eq(const struct chamelium *chamelium, const struct chamelium_frame_dump *dump, struct igt_fb *fb); +void chamelium_assert_crc_eq_or_dump(struct chamelium *chamelium, + igt_crc_t *reference_crc, + igt_crc_t *capture_crc, struct igt_fb *fb, + int index); void chamelium_destroy_frame_dump(struct chamelium_frame_dump *dump); #endif /* IGT_CHAMELIUM_H */ -- cgit v1.2.3