diff options
author | Daniel Stone <daniels@collabora.com> | 2018-06-13 06:04:12 +0200 |
---|---|---|
committer | Eric Engestrom <eric.engestrom@intel.com> | 2018-08-01 12:55:37 +0100 |
commit | 753f603b52db5eb38e27e1842fa43299a348998b (patch) | |
tree | a67524bfa2f518fe54882e3c81d5257245b88f3e /src | |
parent | 275b23ed0e6f7639eb674c3392ec52a0f38274fa (diff) |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/gbm/backends/dri/gbm_dri.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c index df20db40218..b3d6ceb15a3 100644 --- a/src/gbm/backends/dri/gbm_dri.c +++ b/src/gbm/backends/dri/gbm_dri.c @@ -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_* |