summaryrefslogtreecommitdiffstats
path: root/src/gbm
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2013-10-17 21:21:41 -0700
committerKristian Høgsberg <krh@bitplanet.net>2013-10-21 20:56:17 -0700
commit1a2a30ba20c069d36b4ef4d8a62e9e47e04838f6 (patch)
tree2bdeb50bff89c9b041bf39b655c1070c5eb208ba /src/gbm
parent672fab0b1bdffbbdf689f8494c798f868d4d84a4 (diff)
downloadexternal_mesa3d-1a2a30ba20c069d36b4ef4d8a62e9e47e04838f6.zip
external_mesa3d-1a2a30ba20c069d36b4ef4d8a62e9e47e04838f6.tar.gz
external_mesa3d-1a2a30ba20c069d36b4ef4d8a62e9e47e04838f6.tar.bz2
gbm-dri: Support importing RGB565 buffers
Diffstat (limited to 'src/gbm')
-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 661306c..ba148ec 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;