Paulo Zanoni 7ca55f433c tests/igt_fb: rename igt_get_all_formats to igt_get_all_cairo_formats
I recently had this discussion with Daniel where I didn't want to use
igt_drm_format_to_bpp() because it uses the format_desc array, and
igt_fb currently assumes that all the format_desc formats have a
matching valid Cairo format, so I wouldn't be able to easily add
formats such as ARGB2101010.

The function that has the assumption mentioned above is
igt_get_all_formats: its current users call igt_get_all_formats, and
then call cairo-dependent functions, such as igt_get_cairo_ctx on the
returned formats.

In order to document the current behavior and prevent any problems in
case we start adding new formats without matching Cairo versions to
format_desc, rename igt_get_all_formats to igt_get_all_cairo_formats
and make it explicitly check for CAIRO_FORMAT_INVALID.

Requested-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
2016-01-29 16:30:15 -02:00
..
2014-07-23 16:43:05 +01:00
2014-12-04 10:17:16 +08:00
2015-07-20 18:13:37 +01:00
2013-12-05 15:32:42 -08:00
2014-02-20 13:42:25 +00:00
2011-03-29 22:52:50 +02:00
2015-12-21 16:54:40 +01:00
2016-01-27 14:45:19 +00:00
2015-09-08 16:15:16 +01:00
2015-09-08 16:15:16 +01:00
2015-10-07 17:57:26 +01:00
2015-08-21 14:13:16 +01:00
2015-07-02 08:17:17 +01:00
2015-09-08 16:15:16 +01:00
2015-03-25 17:52:11 +00:00
2015-03-25 17:52:11 +00:00