diff options
author | Simon Ser <contact@emersion.fr> | 2021-07-29 08:05:10 +0200 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2021-07-29 10:47:34 -0400 |
commit | 6973361d60ee6e2198accb6810c48ecbd568c751 (patch) | |
tree | bcbcfcf3f8657989942dbd2ccf1846dea81ac2cc /render | |
parent | 3132c0ab107d0251652fe1cb43830d5d0cc57e8f (diff) |
render/pixel-format: add some 24 and 16-bit formats
Diffstat (limited to 'render')
-rw-r--r-- | render/pixel_format.c | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/render/pixel_format.c b/render/pixel_format.c index bf67019e..bfb0dc92 100644 --- a/render/pixel_format.c +++ b/render/pixel_format.c @@ -26,6 +26,42 @@ static const struct wlr_pixel_format_info pixel_format_info[] = { .bpp = 32, .has_alpha = true, }, + { + .drm_format = DRM_FORMAT_BGR888, + .opaque_substitute = DRM_FORMAT_INVALID, + .bpp = 24, + .has_alpha = false, + }, + { + .drm_format = DRM_FORMAT_RGBX4444, + .opaque_substitute = DRM_FORMAT_INVALID, + .bpp = 16, + .has_alpha = false, + }, + { + .drm_format = DRM_FORMAT_RGBA4444, + .opaque_substitute = DRM_FORMAT_RGBX4444, + .bpp = 16, + .has_alpha = false, + }, + { + .drm_format = DRM_FORMAT_RGBX5551, + .opaque_substitute = DRM_FORMAT_INVALID, + .bpp = 16, + .has_alpha = false, + }, + { + .drm_format = DRM_FORMAT_RGBA5551, + .opaque_substitute = DRM_FORMAT_RGBX5551, + .bpp = 16, + .has_alpha = false, + }, + { + .drm_format = DRM_FORMAT_RGB565, + .opaque_substitute = DRM_FORMAT_INVALID, + .bpp = 16, + .has_alpha = false, + }, }; static const size_t pixel_format_info_size = |