Additional wayland protocols and generated rust bindings used by the COSMIC desktop environment.
pop-os / cosmic-protocols Goto Github PK
View Code? Open in Web Editor NEWAddtional wayland-protocols used by the COSMIC desktop environment
Addtional wayland-protocols used by the COSMIC desktop environment
The export dmabuf protocol should provide the driver and device uuid along side the drm node of the device.
The driver and device uuids are defined in the following Vulkan/EGL extensions:
VK_KHR_driver_properties (Or Vulkan 1.2) (Implemented by most drivers)
GL_EXT_external_objects (Implemented by Mesa)
EGL_EXT_device_persistent_id (Not yet implemented by Mesa)
For vulkan in particular, knowing if the dmabuf is from the same driver and device can be used to optimize memory barriers (The driver uuid would differ if two different versions of Mesa are used across the Wayland socket).
If the driver and device uuids match, the implementation can perform queue family ownership transfer from the sentinel "external" queue family instead of having to use the sentinel "foreign" queue family. Testing by Nvidia's driver team showed that the more optimized memory barrier can lead to a 50% performance improvement in some cases.
Now this all sounds great, are there any protocol considerations that need to be made?
Well, using the external queue family on a dmabuf which is infact foreign leads to undefined behavior in Vulkan. This means the protocol MUST mandate that implementations provide the correct device and driver uuid.
The driver and device uuid fields must be optional. In that case clients must assume the worst and use the most conservative memory barriers.
If a compositor supports the driver and device uuid, the implementation must report both (probably by transmitting both in one event).
Anyways I hope that one day this protocol is standardized in Wayland protocols :)
By design, Wayland has fragmentation in how protocols are handled, currently there being three main sets: KDE, GNOME, and wlroots.
I would suggest working with wlroots to use their protocols rather than using a separate set, so as to reduce fragmentation of the Linux desktop. This would also make it easier for utilities to support Cosmic, since they can just build for wlroots and it'll already work on Cosmic.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.