summaryrefslogtreecommitdiff
path: root/lib/igt_fb.h
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2018-02-02 11:32:40 +0100
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2018-02-12 13:13:07 +0100
commitc60cf3b51244334117c69db1f4665ff52815de03 (patch)
treed7d9acfae339678c5f3bf659ae9cc343b0af5711 /lib/igt_fb.h
parentaa5068c58947f31252cad69d80686e40bbce29db (diff)
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 <maarten.lankhorst@linux.intel.com> Reviewed-by: Mika Kahola <mika.kahola@intel.com> Tested-by: Vidya Srinivas <vidya.srinivas@intel.com>
Diffstat (limited to 'lib/igt_fb.h')
-rw-r--r--lib/igt_fb.h1
1 files changed, 1 insertions, 0 deletions
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__ */