From c60cf3b51244334117c69db1f4665ff52815de03 Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst Date: Fri, 2 Feb 2018 11:32:40 +0100 Subject: lib/igt_fb: Add igt_fb_supported_format() This makes it possible to iterate whether a format is supported or not, without each driver having to open code it. Signed-off-by: Maarten Lankhorst Reviewed-by: Mika Kahola Tested-by: Vidya Srinivas --- lib/igt_fb.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/igt_fb.h') diff --git a/lib/igt_fb.h b/lib/igt_fb.h index 77fd88bb..a6ce0789 100644 --- a/lib/igt_fb.h +++ b/lib/igt_fb.h @@ -163,6 +163,7 @@ uint32_t igt_bpp_depth_to_drm_format(int bpp, int depth); uint32_t igt_drm_format_to_bpp(uint32_t drm_format); const char *igt_format_str(uint32_t drm_format); void igt_get_all_cairo_formats(const uint32_t **formats, int *format_count); +bool igt_fb_supported_format(uint32_t drm_format); #endif /* __IGT_FB_H__ */ -- cgit v1.2.3