aboutsummaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorSimon Zeni <simon@bl4ckb0ne.ca>2021-03-24 10:08:45 -0400
committerSimon Ser <contact@emersion.fr>2021-03-25 10:55:54 +0100
commit9b3f2e327f1dae047e9c5d778068a22275e8a6f8 (patch)
tree36cae9040ebe11cffb0296f87f8c40031adcfd5c /render
parentc8b3536b01aa8ecc2ceb44df20613551f839a41d (diff)
render/pixel_format: add XBGR8888 and ABGR8888 format
Diffstat (limited to 'render')
-rw-r--r--render/pixel_format.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/render/pixel_format.c b/render/pixel_format.c
index 05df2ba4..bf67019e 100644
--- a/render/pixel_format.c
+++ b/render/pixel_format.c
@@ -13,7 +13,19 @@ static const struct wlr_pixel_format_info pixel_format_info[] = {
.opaque_substitute = DRM_FORMAT_XRGB8888,
.bpp = 32,
.has_alpha = true,
- }
+ },
+ {
+ .drm_format = DRM_FORMAT_XBGR8888,
+ .opaque_substitute = DRM_FORMAT_INVALID,
+ .bpp = 32,
+ .has_alpha = false,
+ },
+ {
+ .drm_format = DRM_FORMAT_ABGR8888,
+ .opaque_substitute = DRM_FORMAT_XBGR8888,
+ .bpp = 32,
+ .has_alpha = true,
+ },
};
static const size_t pixel_format_info_size =