summaryrefslogtreecommitdiff
path: root/lib/igt_fb.c
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2018-02-02 11:35:45 +0100
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2018-02-12 13:13:12 +0100
commitd311e9aaa6ca137391b590d8093e53af7059ee0c (patch)
tree60ef90a39c2e82642e3ce718458b7e277ae37570 /lib/igt_fb.c
parentc60cf3b51244334117c69db1f4665ff52815de03 (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/igt_fb.c')
-rw-r--r--lib/igt_fb.c33
1 files changed, 0 insertions, 33 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.
*