From 1a2a30ba20c069d36b4ef4d8a62e9e47e04838f6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg?= Date: Thu, 17 Oct 2013 21:21:41 -0700 Subject: [PATCH] gbm-dri: Support importing RGB565 buffers --- src/gbm/backends/dri/gbm_dri.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.30.2