[PATCH weston v12 03/40] [TEST] compositor-drm: Allow disabling universal planes

Pekka Paalanen ppaalanen at gmail.com
Fri Sep 29 09:06:13 UTC 2017


On Tue, 26 Sep 2017 18:15:36 +0100
Daniel Stone <daniels at collabora.com> wrote:

> Add a test environment variable to allow disabling universal planes.
> 
> Signed-off-by: Daniel Stone <daniels at collabora.com>
> ---
>  libweston/compositor-drm.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/libweston/compositor-drm.c b/libweston/compositor-drm.c
> index b28e602f..0827e953 100644
> --- a/libweston/compositor-drm.c
> +++ b/libweston/compositor-drm.c
> @@ -2551,8 +2551,10 @@ init_kms_caps(struct drm_backend *b)
>  	else
>  		b->cursor_height = 64;
>  
> -	ret = drmSetClientCap(b->drm.fd, DRM_CLIENT_CAP_UNIVERSAL_PLANES, 1);
> -	b->universal_planes = (ret == 0);
> +	if (!getenv("WESTON_DISABLE_UNIVERSAL_PLANES")) {
> +		ret = drmSetClientCap(b->drm.fd, DRM_CLIENT_CAP_UNIVERSAL_PLANES, 1);
> +		b->universal_planes = (ret == 0);
> +	}
>  	weston_log("DRM: %s universal planes\n",
>  		   b->universal_planes ? "supports" : "does not support");
>  

Reviewed-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>

IMO we can push this to master, until we develop a better way to
control debugging features.


Thanks,
pq
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20170929/b0d69866/attachment.sig>


More information about the wayland-devel mailing list