dmabuf: implement linux_dmabuf extension

Graphics / Wayland / Weston - Pekka Paalanen [collabora.co.uk] - 14 August 2015 07:53 UTC

v2 changes:- implement the revised protocol- add basic sanity checks when creating buffer and check for support- add way to attach user data to the dmabuf for renderer use- bump max number of planes to 4 to follow DRM AddFb2 ioctl- improve errors handling- use separate linux_dmabuf_buffer fields for the different wl_resource types- as SERVER_ERROR code is no more, use a wl_display "generic" error for emergency-disconneting a client we fail to process- more documentation- change y-invert from per-plane boolean to per-buffer flag

230f3b1 dmabuf: implement linux_dmabuf extension
Makefile.am | 2 +
src/compositor.c | 28 +++
src/compositor.h | 9 +
src/linux-dmabuf.c | 497 ++++++++++++++++++++++++++++++++++++++++++++++++++++
src/linux-dmabuf.h | 84 +++++++++
5 files changed, 620 insertions(+)

Upstream: cgit.freedesktop.org


  • Share