gbm: Axe buffer import format conversion table
authorDaniel Stone <daniels@collabora.com>
Fri, 16 Jun 2017 09:28:03 +0000 (10:28 +0100)
committerDaniel Stone <daniels@collabora.com>
Tue, 18 Jul 2017 21:16:20 +0000 (22:16 +0100)
commit6f8d8b17a1e25361881dfa4f91a43c1c04b029f9
tree1a1679bb38089441c0d72aaf57837b9599c5b3c1
parent28ccf8587e1e1c0e9a7b08296807c343f33dc9de
gbm: Axe buffer import format conversion table

Wayland buffers coming from wl_drm use the WL_DRM_FORMAT_* enums, which
are identical to GBM_FORMAT_*. Similarly, FD imports do not need to
convert between GBM and DRI FourCC, since they are (almost) completely
compatible.

This widens the formats accepted by gbm_bo_import() when importing
wl_buffers; previously, only XRGB8888, ARGB8888, RGB565 and YUYV were
supported.

Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/egl/wayland/wayland-drm/wayland-drm.xml
src/gbm/backends/dri/gbm_dri.c
src/gbm/main/gbm.h