[PATCH weston 0/3 v2] DRM lease support

Marius-cristian Vlad marius-cristian.vlad at nxp.com
Tue Feb 13 11:02:34 UTC 2018


Hi,

The sample client I've posted seems to be using the overlay plane.
Also, Daniel Stone confirmed a while back that they can be used.

However it seems that page flipping on the overlay plane can not
be used if the connector is used in the same time (and I'm not 
treating that case -- I disable that connector before handling out the
lease). Or primary plane -> page flipping, overlay -> wait for vblank?

Looking briefly over weston code I see that for overlay planes they use
wait for vblank mechanism. Maybe Daniel/Pekka can confirm this, or
maybe this is an issue with legacy API and atomic doesn't suffer from
this problem. I'm not 100% sure. 

I guess it would be interesting to see if we can use it in the same
time.

On Mon, 2018-02-12 at 15:54 +0000, Ucan, Emre (ADITG/ESB) wrote:
> Hi,
> 
> Is it possible to only lease an overlay plane, so that lessor and
> lessee share the same connector ?
> 
> Best regards
> 
> Emre Ucan
> Engineering Software Base (ADITG/ESB)
> 
> Tel. +49 5121 49 6937
> 
> > -----Original Message-----
> > From: wayland-devel [mailto:wayland-devel-
> > bounces at lists.freedesktop.org] On Behalf Of Marius Vlad
> > Sent: Montag, 12. Februar 2018 15:55
> > To: wayland-devel at lists.freedesktop.org
> > Cc: pekka.paalanen at collabora.co.uk; keithp at keithp.com; Marius Vlad;
> > daniels at collabora.com
> > Subject: [PATCH weston 0/3 v2] DRM lease support
> > 
> > Patch series that adds support for DRM leases.
> > 
> > DRM leases is a method developed by Keith Packard to allow other
> > application
> > manage the output of a display/VR, while a DRM master is already
> > owning
> > the outputs resources. A more thorough explanation and terminology
> > can
> > be found at [1]. libdrm [2] and kernel [3] have already gained
> > support.
> > 
> > Initially this was a single patch but decided to split into series
> > to
> > accommodate a demo client and another change as to allow a smoother
> > transition
> > of the output from weston to a DRM leased client.
> > 
> > Marius Vlad (3):
> >   compositor-drm: Add support for drm-lease.
> >   compositor-drm: Do not perform a modeset when the output has been
> >     leased
> >   clients/simple-egl-lease: A demo client for DRM leases
> > 
> > [1] https://emea01.safelinks.protection.outlook.com/?url=https%3A%2
> > F%2Fkeithp.com%2Fblogs%2FDRM-lease%2F&data=02%7C01%7Cmarius-
> > cristian.vlad%40nxp.com%7Cb40b120d26074b6c3bea08d57230fe4c%7Cbd8a2a
> > 2207224ec7b35f1c4f0497e341%7C0%7C1%7C636540477114485732&sdata=twp10
> > TCbXPHqW5Xw8ZFigw1UIY2vuE1hp32tFeBmx3E%3D&reserved=0
> > [2]
> > https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2F
> > git.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Ftorvalds%2Flinu
> > x.git%2Fcommit%2F&data=02%7C01%7Cmarius-
> > cristian.vlad%40nxp.com%7Cb40b120d26074b6c3bea08d57230fe4c%7Cbd8a2a
> > 2207224ec7b35f1c4f0497e341%7C0%7C1%7C636540477114485732&sdata=Q5lra
> > qIXACr109zP62gYM3aNsc4vaIOmpcPqr5jz%2F8g%3D&reserved=0?
> > h=v4.15-rc9&id=62884cd386b876638720ef88374b31a84ca7ee5f
> > [3]
> > https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2F
> > cgit.freedesktop.org%2Fmesa%2Fdrm%2Fcommit%2F%3Fid%3Dc4171535389d72
> > e9135c&data=02%7C01%7Cmarius-
> > cristian.vlad%40nxp.com%7Cb40b120d26074b6c3bea08d57230fe4c%7Cbd8a2a
> > 2207224ec7b35f1c4f0497e341%7C0%7C1%7C636540477114485732&sdata=08pKA
> > s4xpNtWPCGMpXGJjtl4heCfb9Blk9MbjJzcuUM%3D&reserved=0
> > 9615cecd07b346fd6d7e
> > 
> > 
> >  Makefile.am                |  13 +
> >  clients/simple-egl-lease.c | 880
> > +++++++++++++++++++++++++++++++++++++++++++++
> >  clients/simple-egl-lease.h |  99 +++++
> >  compositor/main.c          |   9 +
> >  configure.ac               |  21 ++
> >  libweston/compositor-drm.c | 250 ++++++++++++-
> >  libweston/compositor.c     |   1 +
> >  libweston/compositor.h     |   2 +
> >  8 files changed, 1273 insertions(+), 2 deletions(-)
> >  create mode 100644 clients/simple-egl-lease.c
> >  create mode 100644 clients/simple-egl-lease.h
> > 
> > --
> > 2.9.3
> > 
> > _______________________________________________
> > wayland-devel mailing list
> > wayland-devel at lists.freedesktop.org
> > https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2F
> > lists.freedesktop.org%2Fmailman%2Flistinfo%2Fwayland-
> > devel&data=02%7C01%7Cmarius-
> > cristian.vlad%40nxp.com%7Cb40b120d26074b6c3bea08d57230fe4c%7Cbd8a2a
> > 2207224ec7b35f1c4f0497e341%7C0%7C1%7C636540477114485732&sdata=gSvIW
> > bGVSXkvq9Z6jf36Evw3EO5kGB4mew4O6NXE8Jc%3D&reserved=0


More information about the wayland-devel mailing list