From 4dc52bcb6ca294bd5f654dccce64d93865f67249 Mon Sep 17 00:00:00 2001 From: Manuel Stoeckl Date: Thu, 29 Jul 2021 23:49:11 -0400 Subject: render/pixel-format: add a few 10-bit and FP16 formats --- render/pixel_format.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'render/pixel_format.c') diff --git a/render/pixel_format.c b/render/pixel_format.c index bfb0dc92..68b8b877 100644 --- a/render/pixel_format.c +++ b/render/pixel_format.c @@ -62,6 +62,30 @@ static const struct wlr_pixel_format_info pixel_format_info[] = { .bpp = 16, .has_alpha = false, }, + { + .drm_format = DRM_FORMAT_XBGR2101010, + .opaque_substitute = DRM_FORMAT_INVALID, + .bpp = 32, + .has_alpha = false, + }, + { + .drm_format = DRM_FORMAT_ABGR2101010, + .opaque_substitute = DRM_FORMAT_XBGR2101010, + .bpp = 32, + .has_alpha = true, + }, + { + .drm_format = DRM_FORMAT_XBGR16161616F, + .opaque_substitute = DRM_FORMAT_INVALID, + .bpp = 64, + .has_alpha = false, + }, + { + .drm_format = DRM_FORMAT_ABGR16161616F, + .opaque_substitute = DRM_FORMAT_XBGR16161616F, + .bpp = 64, + .has_alpha = true, + }, }; static const size_t pixel_format_info_size = -- cgit v1.2.3