From 38b6004297e347b43bd359ff5b0daa5190337d3b Mon Sep 17 00:00:00 2001 From: Kevin Strasser Date: Fri, 5 Apr 2019 13:14:04 -0700 Subject: lib/igt_fb: Add support for fp16 formats through conversion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Follow design of P01x conversion to support tests needing pixel data in fp16 (half float 64 bpp). rfc2: - Convert whole rows of pixels if possible (Maarten) - Treat rgbx like rgba, let hardware ignore alpha (Maarten) Signed-off-by: Kevin Strasser Reviewed-by: Ville Syrjälä Reviewed-by: Maarten Lankhorst Signed-off-by: Ville Syrjälä --- lib/igt_fb.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/igt_fb.h') diff --git a/lib/igt_fb.h b/lib/igt_fb.h index ba22bd66..adefebe1 100644 --- a/lib/igt_fb.h +++ b/lib/igt_fb.h @@ -189,6 +189,7 @@ uint32_t igt_drm_format_to_bpp(uint32_t drm_format); const char *igt_format_str(uint32_t drm_format); bool igt_fb_supported_format(uint32_t drm_format); bool igt_format_is_yuv(uint32_t drm_format); +bool igt_format_is_fp16(uint32_t drm_format); int igt_format_plane_bpp(uint32_t drm_format, int plane); void igt_format_array_fill(uint32_t **formats_array, unsigned int *count, bool allow_yuv); -- cgit v1.2.3