summaryrefslogtreecommitdiffstats
path: root/src/gbm/backends/dri
diff options
context:
space:
mode:
authorKristian Høgsberg <[email protected]>2013-10-17 21:21:41 -0700
committerKristian Høgsberg <[email protected]>2013-10-21 20:56:17 -0700
commit1a2a30ba20c069d36b4ef4d8a62e9e47e04838f6 (patch)
tree2bdeb50bff89c9b041bf39b655c1070c5eb208ba /src/gbm/backends/dri
parent672fab0b1bdffbbdf689f8494c798f868d4d84a4 (diff)
gbm-dri: Support importing RGB565 buffers
Diffstat (limited to 'src/gbm/backends/dri')
-rw-r--r--src/gbm/backends/dri/gbm_dri.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c
index 661306c9f44..ba148ec73d4 100644
--- a/src/gbm/backends/dri/gbm_dri.c
+++ b/src/gbm/backends/dri/gbm_dri.c
@@ -392,6 +392,9 @@ gbm_dri_bo_import(struct gbm_device *gbm,
case WL_DRM_FORMAT_ARGB8888:
gbm_format = GBM_FORMAT_ARGB8888;
break;
+ case WL_DRM_FORMAT_RGB565:
+ gbm_format = GBM_FORMAT_RGB565;
+ break;
case WL_DRM_FORMAT_YUYV:
gbm_format = GBM_FORMAT_YUYV;
break;