<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Generic dmabuf protocol"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=83881#c7">Comment # 7</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Generic dmabuf protocol"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=83881">bug 83881</a>
              from <span class="vcard"><a class="email" href="mailto:ppaalanen@gmail.com" title="Pekka Paalanen <ppaalanen@gmail.com>"> <span class="fn">Pekka Paalanen</span></a>
</span></b>
        <pre>(In reply to Benjamin Gaignard from <a href="show_bug.cgi?id=83881#c6">comment #6</a>)
<span class="quote">> Do you think it would possible to avoid duplicate formats definition ? it is
> painful when you write client to deal with both SHM and DMABUF formats
> definition.</span >

The namespace is different, and we don't really have a good place for global
constants in Wayland. I suppose one could re-use the wl_shm format list... or
just pick formats from drm_fourcc.h directly, since I believe these are meant
to be identical.

The thing with wl_shm is that it is not limited to systems with dmabuf, while I
think all dmabuf systems already have drm_fourcc.h.

<span class="quote">> simple-dmabuf.c use intel specific functions for buffer management, could
> you make it more generic by using only standard libdrm function ?</span >

If GBM offers it, sure. It just means that simple-dmabuf will depend on Mesa
basically, and probably even need to use GL to fill the buffer. Or maybe some
V4L device could create and export dmabufs.

<span class="quote">> You make linux_dmabuf works for gl-renderer what about pixman-renderer ?</span >

Pixman renderer would require mmap() support which is not guaranteed, but sure,
now that there is a roundtrip involved, Weston could ask the pixman-renderer if
it can handle the tentative new buffer.

As you can see, the series is still missing all about the optional mmap path,
because we needed the accelerated path working first.

<span class="quote">> Which GStreamer video sink do you use as client ?
> How do you allocate the buffers in this sink ?</span >

I'll leave these questions to lfrb and others.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>