Commit 75747159 authored by Paul Kocialkowski's avatar Paul Kocialkowski

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's avatarPaul Kocialkowski <paul.kocialkowski@bootlin.com>
Reviewed-by: Lyude Paul's avatarLyude Paul <lyude@redhat.com>
Reviewed-by: default avatarMaxime Ripard <maxime.ripard@bootlin.com>
parent c7f27710
......@@ -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
......
......@@ -49,6 +49,7 @@ struct chamelium_fb_crc_async_data;
*/
enum chamelium_check {
CHAMELIUM_CHECK_ANALOG,
CHAMELIUM_CHECK_CHECKERBOARD,
CHAMELIUM_CHECK_CRC,
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment