[PATCH weston v2 0/3] compositor: Support linux_dmabuf multiplanar formats for scanout/sprite planes

Tomohito Esaki etom at igel.co.jp
Fri Sep 30 09:28:50 UTC 2016


These patches add support multiplanar formats by using linux_dmabuf instead of
gbm for scanout/sprite plane importing.

When rendering linux_dmabuf buffers, gbm isn't required, and multiplanar
formats can be supported by using drmModeAddFB2() instead of gbm_import().

The first patch refactors destroy drm_fb, the second patch adapts the functions
that create and destroy the drm_fb struct to add support for linux_dmabuf.

v2:
 - rebased to apply on git master
 - fix function declaration to comply weston coding style.
 - remove logging when buffer size < backend size or buffer size > backend size.
 - fix leaking prime FD handle for dmabuf.
 - refactor destroy drm_fb
 - use boolean insted of linux_dmabuf pointer for checking if buffer is dmabuf
 - add comment into drm_output_check_scanout_format().
 - separate some "if" statements for readability.

Tomohito Esaki (3):
  compositor-drm: refactor destroy drm_fb function
  compositor-drm: Add scanout support for linux_dmabuf buffers
  compositor-drm: Support linux_dmabuf output for sprite planes without
    gbm

 libweston/compositor-drm.c | 209 ++++++++++++++++++++++++++++++++-------------
 1 file changed, 149 insertions(+), 60 deletions(-)

-- 
2.7.4



More information about the wayland-devel mailing list