wayland: Complete our buffer format listing

The debug spew for printing out supported buffer
formats was missing a bunch, among them the fp16
formats that are interesting for HDR support.
Add them.

Note that we still only support ARGB8888. But
at least we can print out what don't support.
This commit is contained in:
Matthias Clasen 2021-02-15 16:39:58 -05:00
parent 2ac5c3282f
commit bf6a40f39b

View File

@ -339,6 +339,48 @@ get_format_name (enum wl_shm_format format)
FORMAT(YVU422),
FORMAT(YUV444),
FORMAT(YVU444),
FORMAT(R8),
FORMAT(R16),
FORMAT(RG88),
FORMAT(GR88),
FORMAT(RG1616),
FORMAT(GR1616),
FORMAT(XRGB16161616F),
FORMAT(XBGR16161616F),
FORMAT(ARGB16161616F),
FORMAT(ABGR16161616F),
FORMAT(XYUV8888),
FORMAT(VUY888),
FORMAT(VUY101010),
FORMAT(Y210),
FORMAT(Y212),
FORMAT(Y216),
FORMAT(Y410),
FORMAT(Y412),
FORMAT(Y416),
FORMAT(XVYU12_16161616),
FORMAT(XVYU16161616),
FORMAT(Y0L0),
FORMAT(X0L0),
FORMAT(Y0L2),
FORMAT(X0L2),
FORMAT(YUV420_8BIT),
FORMAT(YUV420_10BIT),
FORMAT(XRGB8888_A8),
FORMAT(XBGR8888_A8),
FORMAT(RGBX8888_A8),
FORMAT(BGRX8888_A8),
FORMAT(RGB888_A8),
FORMAT(BGR888_A8),
FORMAT(RGB565_A8),
FORMAT(BGR565_A8),
FORMAT(NV24),
FORMAT(NV42),
FORMAT(P210),
FORMAT(P010),
FORMAT(P012),
FORMAT(P016),
{ 0xffffffff, NULL }
};
#undef FORMAT