[PATCH wayland-protocols, weston 0/10] format modifier support for linux-dmabuf

Varad Gautam varadgautam at gmail.com
Thu Nov 17 11:55:53 UTC 2016


Hello,

This series amends the linux-dmabuf protocol to advertise supported dmabuf
fourcc format modifiers on a platform, and implements format/modifier
advertising and dmabuf import with modifiers in weston using
EGL_EXT_image_dma_buf_import_modifiers. I have extended the simple-dmabuf-intel
client to work with freedreno to demonstrate the import path with modifiers
using the DRM_FORMAT_NV12 + DRM_FORMAT_MOD_SAMSUNG_64_32_TILE format/modifier
combination supported by the driver.

The series is based upon the linux-dmabuf interface v2 patches at
https://lists.freedesktop.org/archives/wayland-devel/2016-November/031537.html
to keep the protocol versioning consistent. The complete series is available at:
git://git.collabora.com/git/user/varad/wayland-protocols.git dmabuf-modifiers
git://git.collabora.com/git/user/varad/weston.git dmabuf-modifiers

mesa with EGL_EXT_image_dma_buf_import_modifiers and modifier support in
freedreno is located at:
git://git.collabora.com/git/user/varad/mesa.git a3xx-nv12mt-sampling

Thanks,
Varad

wayland-protocols:
Varad Gautam (1):
  linux-dmabuf: advertise format modifiers with modifier event

 unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml | 24 +++++++++++++++++++---
 1 file changed, 21 insertions(+), 3 deletions(-)

weston:
Varad Gautam (9):
  gl-renderer: support format and modifier queries
  linux-dmabuf: advertise supported formats and modifiers
  gl-renderer: allow importing dmabufs with format modifiers
  gl-renderer: allow importing fourth dmabuf plane
  clients/simple-dmabuf-intel: rename to simple-dmabuf-drm
  clients/simple-dmabuf-drm: add freedreno support alongside intel
  clients/simple-dmabuf-drm: import with dmabuf modifiers
  clients/simple-dmabuf-drm: add valid frame data to use with modifiers
  clients/simple-dmabuf-drm: use tiled frame data with modifiers

 Makefile.am                      |   12 +-
 clients/simple-dmabuf-drm-data.h | 3074 ++++++++++++++++++++++++++++++++++++++
 clients/simple-dmabuf-drm.c      |  914 ++++++++++++
 clients/simple-dmabuf-intel.c    |  668 ---------
 configure.ac                     |   31 +-
 libweston/compositor.h           |    7 +
 libweston/gl-renderer.c          |  125 +-
 libweston/linux-dmabuf.c         |   33 +-
 libweston/weston-egl-ext.h       |   18 +
 9 files changed, 4188 insertions(+), 694 deletions(-)
 create mode 100644 clients/simple-dmabuf-drm-data.h
 create mode 100644 clients/simple-dmabuf-drm.c
 delete mode 100644 clients/simple-dmabuf-intel.c

-- 
2.6.2



More information about the wayland-devel mailing list