[RFC weston 08/14] compositor-drm: Add universal plane awareness

Pekka Paalanen ppaalanen at gmail.com
Thu May 21 06:06:16 PDT 2015


On Thu, 21 May 2015 08:29:05 +0100
Daniel Stone <daniels at collabora.com> wrote:

> Add awareness of, rather than support for, universal planes. Activate
> the client cap when we start if possible, and if this is activated,
> studiously ignore non-overlay planes. For now.
> 
> Signed-off-by: Daniel Stone <daniels at collabora.com>
> ---
>  src/compositor-drm.c | 384 ++++++++++++++++++++++++++++++++++++++++++++++++++-
>  1 file changed, 381 insertions(+), 3 deletions(-)
> 
> diff --git a/src/compositor-drm.c b/src/compositor-drm.c
> index 5d07955..2a70728 100644
> --- a/src/compositor-drm.c
> +++ b/src/compositor-drm.c

> @@ -1393,6 +1750,11 @@ init_drm(struct drm_compositor *ec, struct udev_device *device)
>  	else
>  		ec->cursor_height = 64;
>  
> +	ret = drmSetClientCap(fd, DRM_CLIENT_CAP_UNIVERSAL_PLANES, 1);

This requires bumping the libdrm version dependency in configure.ac
from 2.4.30 up to 2.4.47, the check for DRM_COMPOSITOR.


Thanks,
pq

> +	ec->universal_planes = (ret == 0);
> +	weston_log("DRM: %s universal planes\n",
> +		   ec->universal_planes ? "supports" : "does not support");
> +
>  	return 0;
>  }



More information about the wayland-devel mailing list