summaryrefslogtreecommitdiffstats
path: root/src/gbm/backends
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2016-09-03 08:49:49 -0400
committerRob Clark <[email protected]>2016-09-07 11:30:41 -0400
commitb4e88b500c93d9728d2a3e30f6b0365bcb224b88 (patch)
tree0d9c5c6b36047c5c810a64ae2d7af9c06f6e9f52 /src/gbm/backends
parent2afb950161f847d9b0a7be03dfb62cacc5ea51ba (diff)
gbm: add missing R8 and GR88 formats
Reviewed-by: Eric Engestrom <[email protected]> Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gbm/backends')
-rw-r--r--src/gbm/backends/dri/gbm_dri.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c
index c3626e39c07..9c3a51b2b9d 100644
--- a/src/gbm/backends/dri/gbm_dri.c
+++ b/src/gbm/backends/dri/gbm_dri.c
@@ -867,8 +867,14 @@ gbm_dri_bo_create(struct gbm_device *gbm,
bo->base.base.format = format;
switch (format) {
+ case GBM_FORMAT_R8:
+ dri_format = __DRI_IMAGE_FORMAT_R8;
+ break;
+ case GBM_FORMAT_GR88:
+ dri_format = __DRI_IMAGE_FORMAT_GR88;
+ break;
case GBM_FORMAT_RGB565:
- dri_format =__DRI_IMAGE_FORMAT_RGB565;
+ dri_format = __DRI_IMAGE_FORMAT_RGB565;
break;
case GBM_FORMAT_XRGB8888:
case GBM_BO_FORMAT_XRGB8888: