aboutsummaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorManuel Stoeckl <code@mstoeckl.com>2021-07-29 23:49:11 -0400
committerSimon Ser <contact@emersion.fr>2021-07-30 08:29:13 +0200
commit4dc52bcb6ca294bd5f654dccce64d93865f67249 (patch)
tree4911cae7a5cfc03304406dde1b16cc3273cd4544 /render
parentf76960388fc1f3f96f0aa7cfc39e6d9d7a6db668 (diff)
render/pixel-format: add a few 10-bit and FP16 formats
Diffstat (limited to 'render')
-rw-r--r--render/pixel_format.c24
1 files changed, 24 insertions, 0 deletions
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 =