mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 14:20:11 +01:00
gbm: Add support for 10bpp BGR formats
Add support for XBGR2101010 and ABGR2101010 formats. Signed-off-by: Daniel Stone <daniels@collabora.com> Reviewed-by: Mario Kleiner <mario.kleiner.de@gmail.com> Tested-by: Mario Kleiner <mario.kleiner.de@gmail.com> Tested-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
This commit is contained in:
parent
275b23ed0e
commit
753f603b52
1 changed files with 8 additions and 0 deletions
|
|
@ -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_*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue