diff options
author | Paul Kocialkowski <paul.kocialkowski@linux.intel.com> | 2017-07-19 16:46:09 +0300 |
---|---|---|
committer | Lyude <lyude@redhat.com> | 2017-07-19 12:05:27 -0400 |
commit | 5e4e8295e1c89fb33cbc84de11aaa30abba6f4f9 (patch) | |
tree | 20f6852f47664f419a17cec9e706fd01e7f02caf /lib/igt_chamelium.h | |
parent | 34a54192e1fb25041d032d92da59d143afa67464 (diff) |
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 <paul.kocialkowski@linux.intel.com>
Reviewed-by: Lyude <lyude@redhat.com>
Diffstat (limited to 'lib/igt_chamelium.h')
-rw-r--r-- | lib/igt_chamelium.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 */ |