[Patch 3/5 v2] Improve wayland-drm to wayland-gbm to act as generic buffer manager for wayland

Zhao, Halley halley.zhao at linux.intel.com
Fri May 4 00:22:55 PDT 2012

Thanks Juan.

it is similar to gbm_bo_create_from_egl_image(), and extends the usage
to share drm/gbm buffers basing on native handle instead of
EGLImage/__DRIimage; which is convenient for vaapi driver.

we can see that weston has already shared EGLImage(for texture) with
client in weston_surface_attach() basing on wl_buffer

my patch set just extends the buffer sharing to include video driver.

krh, could you give some comments?

On Thu, 2012-05-03 at 16:54 +0800, Juan Zhao wrote:
> On 04/23/2012 06:11 PM, Zhao, Halley wrote:
> >   static struct gbm_bo *
> > +gbm_dri_bo_create_from_native_handle(struct gbm_device *gbm,
> > +                                 union gbm_bo_handle handle, void
> > **image ,
> > +                                 uint32_t width, uint32_t height,
> > uint32_t stride,
> > +                                 uint32_t format, uint32_t usage)
> Just a question, what is the benefit of creating a bo from native handle?
> Thanks,
> Juan

More information about the wayland-devel mailing list