summaryrefslogtreecommitdiff
path: root/lib/igt_fb.h
diff options
context:
space:
mode:
authorKevin Strasser <kevin.strasser@intel.com>2019-04-05 13:14:04 -0700
committerVille Syrjälä <ville.syrjala@linux.intel.com>2019-04-18 22:17:20 +0300
commit38b6004297e347b43bd359ff5b0daa5190337d3b (patch)
treeb346215989af1c6b31388474a08cbb2c612928bb /lib/igt_fb.h
parent99cc81472c278fdf1eb55143779378b45c79c33f (diff)
lib/igt_fb: Add support for fp16 formats through conversion
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 <kevin.strasser@intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'lib/igt_fb.h')
-rw-r--r--lib/igt_fb.h1
1 files changed, 1 insertions, 0 deletions
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);