Skip to content
Commit aa3df408 authored by Xaver Hugl's avatar Xaver Hugl Committed by Simon Ser
Browse files

staging/drm-lease: DRM lease protocol support



DRM leasing is a feature which allows the DRM master to "lease" a subset
of its DRM resources to another DRM master via drmModeCreateLease, which
returns a file descriptor for the new DRM master. We use this protocol
to negotiate the terms of the lease and transfer this file descriptor to
clients.

In less DRM-specific terms: this protocol allows Wayland compositors to
give over their GPU resources (like displays) to a Wayland client to
exclusively control.

The primary use-case for this is Virtual Reality headsets, which via the
non-desktop DRM property are generally not used as desktop displays by
Wayland compositors, and for latency reasons (among others) are most
useful to games et al if they have direct control over the DRM resources
associated with it. Basically, these are peripherals which are of no use
to the compositor and may be of use to a client, but since they are tied
up in DRM we need to use DRM leasing to get them into client's hands.

Signed-off-by: default avatarMarius Vlad <marius.vlad@collabora.com>
Signed-off-by: default avatarDrew DeVault <sir@cmpwn.com>
Signed-off-by: default avatarXaver Hugl <xaver.hugl@gmail.com>
Reviewed-by: Simon Ser's avatarSimon Ser <contact@emersion.fr>
Signed-off-by: default avatarDavid Edmundson <davidedmundson@kde.org>
Reviewed-by: default avatarJonas Ådahl <jadahl@gmail.com>
parent 7460f79e
Loading
Loading
Loading
Pipeline #375821 passed with stages
in 44 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment