diff options
author | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2018-02-02 11:35:45 +0100 |
---|---|---|
committer | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2018-02-12 13:13:12 +0100 |
commit | d311e9aaa6ca137391b590d8093e53af7059ee0c (patch) | |
tree | 60ef90a39c2e82642e3ce718458b7e277ae37570 /lib | |
parent | c60cf3b51244334117c69db1f4665ff52815de03 (diff) |
lib/igt_fb: Remove igt_get_all_cairo_formats()
All users have been converted to igt_fb_supported_format(),
I don't think there's a valid use left for this.
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')
-rw-r--r-- | lib/igt_fb.c | 33 | ||||
-rw-r--r-- | lib/igt_fb.h | 1 |
2 files changed, 0 insertions, 34 deletions
diff --git a/lib/igt_fb.c b/lib/igt_fb.c index 0389b1c1..ecd73053 100644 --- a/lib/igt_fb.c +++ b/lib/igt_fb.c @@ -1688,39 +1688,6 @@ const char *igt_format_str(uint32_t drm_format) } /** - * igt_get_all_cairo_formats: - * @formats: pointer to pointer to store the allocated formats array - * @format_count: pointer to integer to store the size of the allocated array - * - * This functions returns an array of all the drm fourcc codes supported by - * cairo and this library. - */ -void igt_get_all_cairo_formats(const uint32_t **formats, int *format_count) -{ - static uint32_t *drm_formats; - static int n_formats; - - if (!drm_formats) { - struct format_desc_struct *f; - uint32_t *format; - - n_formats = 0; - for_each_format(f) - if (f->cairo_id != CAIRO_FORMAT_INVALID) - n_formats++; - - drm_formats = calloc(n_formats, sizeof(*drm_formats)); - format = &drm_formats[0]; - for_each_format(f) - if (f->cairo_id != CAIRO_FORMAT_INVALID) - *format++ = f->drm_id; - } - - *formats = drm_formats; - *format_count = n_formats; -} - -/** * igt_fb_supported_format: * @drm_format: drm fourcc to test. * diff --git a/lib/igt_fb.h b/lib/igt_fb.h index a6ce0789..023b069d 100644 --- a/lib/igt_fb.h +++ b/lib/igt_fb.h @@ -162,7 +162,6 @@ int igt_cairo_printf_line(cairo_t *cr, enum igt_text_align align, 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__ */ |