mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-11-09 14:03:18 +09:00
Modifier-aware GBM allocation can return multi-plane buffers, but the wlroots capture path only described plane zero to linux-dmabuf. Query and export each plane fd, stride, and offset, then add every plane to the Wayland parameter object. Allocate modifier-backed buffers with rendering usage and close exported descriptors when export or asynchronous buffer creation fails. Add unit coverage for multi-plane metadata, unsupported plane counts, and partial-export cleanup.