From: Kristian Høgsberg Date: Fri, 18 Oct 2013 04:21:41 +0000 (-0700) Subject: gbm-dri: Support importing RGB565 buffers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1a2a30ba20c069d36b4ef4d8a62e9e47e04838f6;p=mesa.git gbm-dri: Support importing RGB565 buffers --- 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;