mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
render/pixel_format: add more formats for Pixman
These will be added to Pixman in the next commit.
This commit is contained in:
parent
923258b0be
commit
b913e64f95
1 changed files with 42 additions and 0 deletions
|
@ -26,6 +26,30 @@ static const struct wlr_pixel_format_info pixel_format_info[] = {
|
||||||
.bpp = 32,
|
.bpp = 32,
|
||||||
.has_alpha = true,
|
.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,
|
.drm_format = DRM_FORMAT_BGR888,
|
||||||
.opaque_substitute = DRM_FORMAT_INVALID,
|
.opaque_substitute = DRM_FORMAT_INVALID,
|
||||||
|
@ -62,6 +86,24 @@ static const struct wlr_pixel_format_info pixel_format_info[] = {
|
||||||
.bpp = 16,
|
.bpp = 16,
|
||||||
.has_alpha = false,
|
.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,
|
.drm_format = DRM_FORMAT_XBGR2101010,
|
||||||
.opaque_substitute = DRM_FORMAT_INVALID,
|
.opaque_substitute = DRM_FORMAT_INVALID,
|
||||||
|
|
Loading…
Reference in a new issue