Skip to content
Snippets Groups Projects
Commit 753f603b authored by Daniel Stone's avatar Daniel Stone Committed by Eric Engestrom
Browse files

gbm: Add support for 10bpp BGR formats


Add support for XBGR2101010 and ABGR2101010 formats.

Signed-off-by: default avatarDaniel Stone <daniels@collabora.com>
Reviewed-by: default avatarMario Kleiner <mario.kleiner.de@gmail.com>
Tested-by: default avatarMario Kleiner <mario.kleiner.de@gmail.com>
Tested-by: default avatarIlia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: default avatarEric Engestrom <eric.engestrom@intel.com>
parent 275b23ed
No related branches found
Tags mesa-17.1.0
No related merge requests found
......@@ -580,6 +580,14 @@ static const struct gbm_dri_visual gbm_dri_visuals_table[] = {
GBM_FORMAT_ARGB2101010, __DRI_IMAGE_FORMAT_ARGB2101010,
{ 0x3ff00000, 0x000ffc00, 0x000003ff, 0xc0000000 },
},
{
GBM_FORMAT_XBGR2101010, __DRI_IMAGE_FORMAT_XBGR2101010,
{ 0x000003ff, 0x000ffc00, 0x3ff00000, 0x00000000 },
},
{
GBM_FORMAT_ABGR2101010, __DRI_IMAGE_FORMAT_ABGR2101010,
{ 0x000003ff, 0x000ffc00, 0x3ff00000, 0xc0000000 },
},
};
/* The two GBM_BO_FORMAT_[XA]RGB8888 formats alias the GBM_FORMAT_*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment