Bug 49002

Summary: EGL/GBM: Make it possible to share buffers from compositor to clients
Product: Wayland Reporter: Darxus <darxus>
Component: waylandAssignee: Wayland bug list <wayland-bugs>
Status: RESOLVED WONTFIX QA Contact:
Severity: enhancement    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 48976    

Description Darxus 2012-04-20 12:12:44 UTC
Tricky part here is how to indicate to EGL on the server side that it should make an EGLImage available to a client.  We'll need a "create a wl_buffer for this EGLImage for this client" kind of entry point.
Comment 1 Daniel Stone 2014-10-03 17:19:30 UTC
*** Bug 49003 has been marked as a duplicate of this bug. ***
Comment 2 Daniel Stone 2014-10-03 17:20:22 UTC
EGL implementations can already send a wl_surface along to the server, but then we need a way to indicate to gbm that a particular surface is (or isn't) a scanout candidate. gbm can then arbitrate buffer allocations itself. This is quite complex, but with this simple API addition, all hidden inside the implementation:
  gbm_surface_set_scanout_candidate(struct gbm_surface *surface, bool scanout)
Comment 3 Daniel Stone 2018-06-04 06:45:50 UTC
We don't plan to generically duplicate this X11 functionality, though some compositors have been looking at doing it.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.