Draft: Add support for the DRM lease protocol
Rebased Jonas Ådahl's and Hunor Csomortáni's past work (and rebase), with a few (very) minor updates.
I'm unable to fully test this, due to not having a display that can be marked as NON_DESKTOP
(but I can patch that requirement out if need be, and possibly make it customizable via an environment variable)
TODO
-
Rebase properly, per @jadahl:
yes. tl;dr is:
check out old branch
git rebase origin/main
fix all conflicts that appear
profit
step 2 can be changed to
git rebase -i origin/main -x "ninja -C build"
and it'll test build every commit
-
Fix up all the TODOs -
Make sure meta_crtc_kms_is_leased
is feeling okay -
Add a gsetting to wall this as an experimental feature -
Add an environment variable to allow connectors to forcefully be marked as NON_DISPLAY
-
Make sure it all works properly and follows the protocol -
No compile warnings
People to bug when this needs testing:
See !2759 (closed) for the past attempt(s)
Closes #1743 (closed)
Signed-off-by: Dallas Strouse dastrouses@gmail.com
Edited by Dallas Strouse