[PATCH weston v12 27/40] compositor-drm: Add modifiers to GBM dmabuf import

Philipp Zabel p.zabel at pengutronix.de
Wed Sep 27 09:45:34 UTC 2017


On Tue, 2017-09-26 at 18:16 +0100, Daniel Stone wrote:
> Add support for the GBM_BO_IMPORT_FD_MODIFIER path, which allows us to
> import multi-plane dmabufs, as well as format modifiers.
> 
> Signed-off-by: Daniel Stone <daniels at collabora.com>
> ---
>  configure.ac               |   3 -
>  libweston/compositor-drm.c | 181 +++++++++++++++++++++++++++++++++---
> ---------
>  2 files changed, 133 insertions(+), 51 deletions(-)
> 
> diff --git a/configure.ac b/configure.ac
> index f09d0e04..3996c80c 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -203,9 +203,6 @@ if test x$enable_drm_compositor = xyes; then
>    PKG_CHECK_MODULES(DRM_COMPOSITOR_ATOMIC, [libdrm >= 2.4.78],
>  		    [AC_DEFINE([HAVE_DRM_ATOMIC], 1, [libdrm supports
> atomic API])],
>  		    [AC_MSG_WARN([libdrm does not support atomic
> modesetting, will omit that capability])])
> -  PKG_CHECK_MODULES(DRM_COMPOSITOR_GBM, [gbm >= 10.2],
> -		    [AC_DEFINE([HAVE_GBM_FD_IMPORT], 1, [gbm supports
> dmabuf import])],
> -		    [AC_MSG_WARN([gbm does not support dmabuf import,
> will omit that capability])])

Should this check for a newer gbm instead? With the modifiers, this
won't build against the gbm from  Mesa 17.1.10 anymore.

regards
Philipp


More information about the wayland-devel mailing list