[Mesa-dev] [PATCH 6/6] gbm: Add support for gbm bos and surfaces using GBM_FORMAT_ARGB2101010

Kristian Høgsberg krh at bitplanet.net
Sun Sep 15 00:16:48 PDT 2013


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 <krh at bitplanet.net>
---
 src/gbm/backends/dri/gbm_dri.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c
index f7da79c..067b7d3 100644
--- a/src/gbm/backends/dri/gbm_dri.c
+++ b/src/gbm/backends/dri/gbm_dri.c
@@ -548,6 +548,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;
    }
-- 
1.8.3.1



More information about the mesa-dev mailing list