Files
VoelinClient/crates
selikhovandClaude Opus 5.5 2bd78ca39d voelin-media: hand a DMA-BUF-taking sink the buffer's real size
The portal offers a sink that accepts DMA-BUFs the buffer as it is, with
its size taken from `mapoffset + maxsize`: the same fields 9b09e7b found
0 for every DMA-BUF this compositor sends, which left the mapping empty.
On the sink path the size goes into the DRM PRIME descriptor of the
import. Mesa happens to ignore it (an import with size 0 encoded the same
picture here), but the size is part of the descriptor and other drivers
use it, so ask the buffer object (lseek to the end, which a DMA-BUF
answers with its size) and fall back to the rows the format describes.

The module documentation now says what a DMA-BUF-taking sink gets, and
why tiled buffers are still not offered: the modifiers the encoder's
driver imports are not known on this side.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 02:35:34 +03:00
..