[WIP] Headless export-dmabuf
This is very much work in progress, but it does work quite well.
Things I'd like some feedback on:
- GBM buffer allocation. Would it be better to get the render node from DRM if the renderer belongs to DRM?
- The way I added
glEGLImageTargetRenderbufferStorageOES
into the backend is rather ugly. Suggestions?
Merge request reports
Activity
Review: Commented
I haven't looked into this in detail, but here are some general comments.
Something quite similar has been worked on for the DRM backend. I think ti would make sense to use the renderer v6's
wlr_swapchain
here too. See https://github.com/swaywm/wlroots/pull/2240GBM buffer allocation. Would it be better to get the render node from DRM if the renderer belongs to DRM?
It may make sense to add
wlr_renderer_get_fd
. See https://github.com/swaywm/wlroots/pull/1376#issuecomment-634552001GBM buffer allocation. Would it be better to get the render node from DRM if the renderer belongs to DRM?
https://github.com/swaywm/wlroots/pull/1376 now has
wlr_renderer_get_drm_fd
.I've adapted #2240 for the headless backend: https://github.com/swaywm/wlroots/pull/2374