diff options
author | Daniel Stone <[email protected]> | 2018-06-13 06:04:11 +0200 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2018-08-01 12:55:37 +0100 |
commit | 275b23ed0e6f7639eb674c3392ec52a0f38274fa (patch) | |
tree | 69020e6f619309503522e43353bc088b5837344c | |
parent | 471bce568916f4ade0e2c1cf975c3fe6045ebd9f (diff) |
egl/wayland: Add 10bpc BGR configs
Add support for XBGR2101010 and ABGR2101010.
Signed-off-by: Daniel Stone <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Reviewed-by: Mario Kleiner <[email protected]>
Tested-by: Mario Kleiner <[email protected]>
Tested-by: Ilia Mirkin <[email protected]>
-rw-r--r-- | src/egl/drivers/dri2/platform_wayland.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c index 294a6eddd60..dca099500a8 100644 --- a/src/egl/drivers/dri2/platform_wayland.c +++ b/src/egl/drivers/dri2/platform_wayland.c @@ -75,6 +75,18 @@ static const struct dri2_wl_visual { { 0x3ff00000, 0x000ffc00, 0x000003ff, 0xc0000000 } }, { + "XBGR2101010", + WL_DRM_FORMAT_XBGR2101010, WL_SHM_FORMAT_XBGR2101010, + __DRI_IMAGE_FORMAT_XBGR2101010, 32, + { 0x000003ff, 0x000ffc00, 0x3ff00000, 0x00000000 } + }, + { + "ABGR2101010", + WL_DRM_FORMAT_ABGR2101010, WL_SHM_FORMAT_ABGR2101010, + __DRI_IMAGE_FORMAT_ABGR2101010, 32, + { 0x000003ff, 0x000ffc00, 0x3ff00000, 0xc0000000 } + }, + { "XRGB8888", WL_DRM_FORMAT_XRGB8888, WL_SHM_FORMAT_XRGB8888, __DRI_IMAGE_FORMAT_XRGB8888, 32, |