diff options
author | Kristian Høgsberg <[email protected]> | 2013-09-14 23:32:44 -0700 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2013-10-15 22:07:52 -0700 |
commit | 6e444a72c1f9e4446e025b8cb780523cb89f0584 (patch) | |
tree | 347b636850061df5d24af7e1ca308f55d2b6d9d5 /src/gbm | |
parent | 3160ec353e62fb9fea2ea8a0439f5973b57adcac (diff) |
gbm: Add support for gbm bos and surfaces using GBM_FORMAT_ARGB2101010
We can now add GBM support for the 10 bit/channel formats which lets us
create a gbm surface that we can use with KMS for display hardware that
support the format.
Signed-off-by: Kristian Høgsberg <[email protected]>
Diffstat (limited to 'src/gbm')
-rw-r--r-- | src/gbm/backends/dri/gbm_dri.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c index 24ed2f1c6ab..661306c9f44 100644 --- a/src/gbm/backends/dri/gbm_dri.c +++ b/src/gbm/backends/dri/gbm_dri.c @@ -551,6 +551,12 @@ gbm_dri_bo_create(struct gbm_device *gbm, case GBM_FORMAT_ABGR8888: dri_format = __DRI_IMAGE_FORMAT_ABGR8888; break; + case GBM_FORMAT_ARGB2101010: + dri_format = __DRI_IMAGE_FORMAT_ARGB2101010; + break; + case GBM_FORMAT_XRGB2101010: + dri_format = __DRI_IMAGE_FORMAT_XRGB2101010; + break; default: return NULL; } |