[Mesa-dev] Move wayland-drm protocol from Mesa to wayland-core

Daniel Stone daniel at fooishbar.org
Thu Nov 28 12:55:57 PST 2013


Hi,

On 28 November 2013 10:04, Pekka Paalanen <ppaalanen at gmail.com> wrote:
> On Thu, 28 Nov 2013 10:24:33 +0100
> Benjamin Gaignard <benjamin.gaignard at linaro.org> wrote:
>> From my point of view wl_drm isn't link to Mesa, it is only about
>> exchange buffers by using a file descriptor and, for example, doesn't
>> rely on EGL.
>>
>> I understand that other graphic stacks could have defined their own
>> way to for zero-copy (and so other protocols).
>> I don't aim to make gstreamer wayland sink works for all of them but
>> at least with wl_drm protocol which is quite generic.
>>
>> Since dmabuf has been adopted in kernel we have the opportunity to
>> rationalize also some code in userland and for that we need a common
>> wayland protocol.
>> Move wl_drm into wayland-core make it more easily accessible for all
>> software even for those who don't use Mesa.
>
> if you aim particularly for dma-buf, then I would propose making a new
> Wayland protocol extension mesa_dma_buf or gbm_dma_buf or whatever name
> is appropriate, and drop all the unneeded parts compared to wl_drm.

Given that dmabuf doesn't specify format codes or anything like that,
you can't make it properly generic.  My original thought was to make a
generic wl_dmabuf interface, but given the format code issue, it
seemed prudent to leave it as a part of wl_drm for now.

Cheers,
Daniel


More information about the mesa-dev mailing list