From b913e64f953a8eb5fb1d3eeffc53572ee44ae91d Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sun, 1 Aug 2021 19:27:41 +0200 Subject: render/pixel_format: add more formats for Pixman These will be added to Pixman in the next commit. --- render/pixel_format.c | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) (limited to 'render/pixel_format.c') 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 @@ -26,6 +26,30 @@ static const struct wlr_pixel_format_info pixel_format_info[] = { .bpp = 32, .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, @@ -62,6 +86,24 @@ static const struct wlr_pixel_format_info pixel_format_info[] = { .bpp = 16, .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, -- cgit v1.2.3