gbm-dri: Support importing RGB565 buffers
authorKristian Høgsberg <krh@bitplanet.net>
Fri, 18 Oct 2013 04:21:41 +0000 (21:21 -0700)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 22 Oct 2013 03:56:17 +0000 (20:56 -0700)
src/gbm/backends/dri/gbm_dri.c

index 661306c9f4400f344941cb834ab83f2a244895f7..ba148ec73d483c98ca17a1dde20b7f7e5e0e0d6a 100644 (file)
@@ -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;