Benjamin Franzke, a developer who as of the past several months has been hacking on Wayland and working to get it running over OpenWF along with making other improvements, has written a graphics buffer manager (GBM) for Mesa.
Franzke's previously accomplishments have been getting Wayland to use Mesa's EGL
and Gallium3D software rendering support for Wayland
, among other items. Ben's new work that he just published to the Mesa mailing list a few minutes ago adds a graphics buffer management library to Mesa. This is targeted to be used as a native DRM platform for EGL on KMS or OPENWFD. This library replaces the previous hard-coded EGL calls to create buffers and instead uses Mesa's internal DRI interface and for the Gallium3D drivers it acts as a state tracker.
There are eight Mesa GBM patches that add this library to Mesa with Gallium and DRM back-ends. It's hooked into all of the Gallium3D drivers via the DRI state tracker and has also been added to Intel's "classic" Mesa driver since they haven't yet jumped on the Gallium3D bandwagon.
The patch series can be found in the Mesa mailing list archives