Skip to contentSkip to conversation

HAX tests/kms_frontbuffer_tracking: Hack in chamelium frame dump support

PATCH New Maarten Lankhorst 2 participants 2 messages Apr 15, 2019 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 HAX tests/kms_frontbuffer_tracking: Hack in chamelium frame dump support

Initialize the chamelium when starting the tests, and keep the reference FB's. When we get a CRC mismatch, we dump all the frames in the current directory since we started capturing, and include the reference frame as well.

Also unhide the nop methods by default for testing.

---
 lib/igt_chamelium.c              |   2 +-
 lib/igt_chamelium.h              |   1 +
 tests/kms_frontbuffer_tracking.c | 265 ++++++++++++++++++++++++++-----
 3 files changed, 226 insertions(+), 42 deletions(-)
lib/igt_chamelium.c +1 -1
index 9bba4b1fd1c8..aa141fdaf9f8 100644
@@ -940,7 +940,7 @@ static pixman_image_t *convert_frame_format(pixman_image_t *src,
 	return converted;
 }
 
-static cairo_surface_t *convert_frame_dump_argb32(const struct chamelium_frame_dump *dump)
+cairo_surface_t *convert_frame_dump_argb32(const struct chamelium_frame_dump *dump)
 {
 	cairo_surface_t *dump_surface;
 	pixman_image_t *image_bgr;
lib/igt_chamelium.h +1 -0
index 233ead8556f1..72661862214d 100644
@@ -131,5 +131,6 @@ void chamelium_assert_frame_match_or_dump(struct chamelium *chamelium,
 void chamelium_crop_analog_frame(struct chamelium_frame_dump *dump, int width,
 				 int height);
 void chamelium_destroy_frame_dump(struct chamelium_frame_dump *dump);
+cairo_surface_t *convert_frame_dump_argb32(const struct chamelium_frame_dump *dump);
 
 #endif /* IGT_CHAMELIUM_H */
tests/kms_frontbuffer_tracking.c +224 -41

525 lines not on this page · raw message

Signature · 6 lines
2.20.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
#1 lore raw

[igt-dev] ✗ Fi.CI.BAT: failure for HAX tests/kms_frontbuffer_tracking: Hack in chamelium frame dump support

== Series Details ==

== Series Details ==

Series: HAX tests/kms_frontbuffer_tracking: Hack in chamelium frame dump support
URL : https://patchwork.freedesktop.org/series/59490/
State : failure

== Summary ==

Applying: HAX tests/kms_frontbuffer_tracking: Hack in chamelium frame dump support Patch failed at 0001 HAX tests/kms_frontbuffer_tracking: Hack in chamelium frame dump support When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev