[igt-dev] [PATCH RESEND i-g-t v6 20/22] lib/igt_chamelium: Hook-in checkerboard comparison method in helpers
Paul Kocialkowski
paul.kocialkowski at bootlin.com
Fri Feb 22 11:25:41 UTC 2019
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 at bootlin.com>
Reviewed-by: Lyude Paul <lyude at redhat.com>
Reviewed-by: Maxime Ripard <maxime.ripard at bootlin.com>
---
lib/igt_chamelium.c | 4 +++-
lib/igt_chamelium.h | 1 +
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/lib/igt_chamelium.c b/lib/igt_chamelium.c
index 62f7e40c447d..02cc9b2c0051 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
diff --git a/lib/igt_chamelium.h b/lib/igt_chamelium.h
index 2f8e31db6393..233ead8556f1 100644
--- a/lib/igt_chamelium.h
+++ b/lib/igt_chamelium.h
@@ -49,6 +49,7 @@ struct chamelium_fb_crc_async_data;
*/
enum chamelium_check {
CHAMELIUM_CHECK_ANALOG,
+ CHAMELIUM_CHECK_CHECKERBOARD,
CHAMELIUM_CHECK_CRC,
};
--
2.20.1
More information about the igt-dev
mailing list