diff options
author | Paul Kocialkowski <paul.kocialkowski@bootlin.com> | 2019-01-10 16:09:53 +0100 |
---|---|---|
committer | Paul Kocialkowski <paul.kocialkowski@bootlin.com> | 2019-02-26 09:45:54 +0100 |
commit | 757471599422469a1d12eec82ee038c4a748fc0f (patch) | |
tree | 8954a92f1b1832072f2b1adb15c0eda06fd4f8a3 /lib/igt_chamelium.c | |
parent | c7f27710a63541b73fe72b579afc7250f87fdd89 (diff) |
lib/igt_chamelium: Hook-in checkerboard comparison method in helpers
This introduces the checkerboard chamelium checking type and hooks the
call to the associated igt_frame matching helper in the frame match
chamelium helper.
Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Maxime Ripard <maxime.ripard@bootlin.com>
Diffstat (limited to 'lib/igt_chamelium.c')
-rw-r--r-- | lib/igt_chamelium.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/igt_chamelium.c b/lib/igt_chamelium.c index 62f7e40c4..02cc9b2c0 100644 --- a/lib/igt_chamelium.c +++ b/lib/igt_chamelium.c @@ -1127,6 +1127,9 @@ void chamelium_assert_frame_match_or_dump(struct chamelium *chamelium, case CHAMELIUM_CHECK_ANALOG: match = igt_check_analog_frame_match(reference, capture); break; + case CHAMELIUM_CHECK_CHECKERBOARD: + match = igt_check_checkerboard_frame_match(reference, capture); + break; default: igt_assert(false); } @@ -1156,7 +1159,6 @@ void chamelium_assert_frame_match_or_dump(struct chamelium *chamelium, cairo_surface_destroy(capture); } - /** * chamelium_analog_frame_crop: * @chamelium: The Chamelium instance to use |