From bf6a40f39b8195c0e009680d3f483a24efad653e Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 15 Feb 2021 16:39:58 -0500 Subject: [PATCH] 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. --- gdk/wayland/gdkdisplay-wayland.c | 42 ++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/gdk/wayland/gdkdisplay-wayland.c b/gdk/wayland/gdkdisplay-wayland.c index b261c77fae..41e8b5f5a7 100644 --- a/gdk/wayland/gdkdisplay-wayland.c +++ b/gdk/wayland/gdkdisplay-wayland.c @@ -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