render/pixel-format: add a few 10-bit and FP16 formats

This commit is contained in:
Manuel Stoeckl 2021-07-29 23:49:11 -04:00 committed by Simon Ser
parent f76960388f
commit 4dc52bcb6c
1 changed files with 24 additions and 0 deletions

View File

@ -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 =