summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/igt_fb.c33
-rw-r--r--lib/igt_fb.h1
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__ */