aboutsummaryrefslogtreecommitdiff
path: root/render/pixel_format.c
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-08-01 19:27:41 +0200
committerSimon Zeni <simon@bl4ckb0ne.ca>2021-08-03 02:53:03 -0400
commitb913e64f953a8eb5fb1d3eeffc53572ee44ae91d (patch)
treea069bfd9652a90a3232a06148a7fd0c730a231d5 /render/pixel_format.c
parent923258b0bedef4ef9cfc02b5c30b8cb8c51ec0f8 (diff)
render/pixel_format: add more formats for Pixman
These will be added to Pixman in the next commit.
Diffstat (limited to 'render/pixel_format.c')
-rw-r--r--render/pixel_format.c42
1 files changed, 42 insertions, 0 deletions
diff --git a/render/pixel_format.c b/render/pixel_format.c
index 68b8b877..bd59af8b 100644
--- a/render/pixel_format.c
+++ b/render/pixel_format.c
@@ -27,6 +27,30 @@ static const struct wlr_pixel_format_info pixel_format_info[] = {
.has_alpha = true,
},
{
+ .drm_format = DRM_FORMAT_RGBX8888,
+ .opaque_substitute = DRM_FORMAT_INVALID,
+ .bpp = 32,
+ .has_alpha = false,
+ },
+ {
+ .drm_format = DRM_FORMAT_RGBA8888,
+ .opaque_substitute = DRM_FORMAT_RGBX8888,
+ .bpp = 32,
+ .has_alpha = true,
+ },
+ {
+ .drm_format = DRM_FORMAT_BGRX8888,
+ .opaque_substitute = DRM_FORMAT_INVALID,
+ .bpp = 32,
+ .has_alpha = false,
+ },
+ {
+ .drm_format = DRM_FORMAT_BGRA8888,
+ .opaque_substitute = DRM_FORMAT_BGRX8888,
+ .bpp = 32,
+ .has_alpha = true,
+ },
+ {
.drm_format = DRM_FORMAT_BGR888,
.opaque_substitute = DRM_FORMAT_INVALID,
.bpp = 24,
@@ -63,6 +87,24 @@ static const struct wlr_pixel_format_info pixel_format_info[] = {
.has_alpha = false,
},
{
+ .drm_format = DRM_FORMAT_BGR565,
+ .opaque_substitute = DRM_FORMAT_INVALID,
+ .bpp = 16,
+ .has_alpha = false,
+ },
+ {
+ .drm_format = DRM_FORMAT_XRGB2101010,
+ .opaque_substitute = DRM_FORMAT_INVALID,
+ .bpp = 32,
+ .has_alpha = false,
+ },
+ {
+ .drm_format = DRM_FORMAT_ARGB2101010,
+ .opaque_substitute = DRM_FORMAT_XRGB2101010,
+ .bpp = 32,
+ .has_alpha = true,
+ },
+ {
.drm_format = DRM_FORMAT_XBGR2101010,
.opaque_substitute = DRM_FORMAT_INVALID,
.bpp = 32,