summaryrefslogtreecommitdiffstats
path: root/src/egl/wayland/wayland-drm
diff options
context:
space:
mode:
authorDaniel Stone <[email protected]>2017-06-16 10:28:03 +0100
committerDaniel Stone <[email protected]>2017-07-18 22:16:20 +0100
commit6f8d8b17a1e25361881dfa4f91a43c1c04b029f9 (patch)
tree1a1679bb38089441c0d72aaf57837b9599c5b3c1 /src/egl/wayland/wayland-drm
parent28ccf8587e1e1c0e9a7b08296807c343f33dc9de (diff)
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 <[email protected]>
Diffstat (limited to 'src/egl/wayland/wayland-drm')
-rw-r--r--src/egl/wayland/wayland-drm/wayland-drm.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/egl/wayland/wayland-drm/wayland-drm.xml b/src/egl/wayland/wayland-drm/wayland-drm.xml
index 5e64622df67..83aa5615539 100644
--- a/src/egl/wayland/wayland-drm/wayland-drm.xml
+++ b/src/egl/wayland/wayland-drm/wayland-drm.xml
@@ -39,7 +39,8 @@
<enum name="format">
<!-- The drm format codes match the #defines in drm_fourcc.h.
The formats actually supported by the compositor will be
- reported by the format event. -->
+ reported by the format event. New codes must not be added,
+ unless directly taken from drm_fourcc.h. -->
<entry name="c8" value="0x20203843"/>
<entry name="rgb332" value="0x38424752"/>
<entry name="bgr233" value="0x38524742"/>