From 7a8456beff7e4b57715f181a5a6c2d2cc7fce18b Mon Sep 17 00:00:00 2001 From: Paul Kocialkowski Date: Thu, 10 Jan 2019 17:33:52 +0100 Subject: lib/igt_fb: Add a helper to fill-in the available DRM formats Introduce a helper to allocate and fill-in a list of available DRM formats, which is useful for picking one at random in tests. Signed-off-by: Paul Kocialkowski Reviewed-by: Lyude Paul Reviewed-by: Maxime Ripard --- lib/igt_fb.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/igt_fb.h') diff --git a/lib/igt_fb.h b/lib/igt_fb.h index 0bac83c3..2c0a24d2 100644 --- a/lib/igt_fb.h +++ b/lib/igt_fb.h @@ -182,6 +182,8 @@ const char *igt_format_str(uint32_t drm_format); bool igt_fb_supported_format(uint32_t drm_format); bool igt_format_is_yuv(uint32_t drm_format); int igt_format_plane_bpp(uint32_t drm_format, int plane); +void igt_format_array_fill(uint32_t **formats_array, unsigned int *count, + bool allow_yuv); #endif /* __IGT_FB_H__ */ -- cgit v1.2.3