PRIME/DMA_BUF Support For Wayland

Posted by Michael Larabel on February 28, 2013

Kristian Høgsberg has published initial support for Wayland to support buffer sharing that's compatible with PRIME/DMA_BUF.

PRIME is the project that originally came about in the X.Org world for supporting technologies like NVIDIA Optimus with buffer sharing and GPU offloading. DMA_BUF is the Linux kernel infrastructure that allows zero-copy sharing of buffers between kernel drivers, such as from one DRM driver to another (so multiple GPUs from different vendors can share a buffer in a standardizes way) or from a DRM driver to a driver in a different sub-system (e.g. V4L2; namely in the case of ARM SoCs).

The work that Kristian Høgsberg published on Wednesday evening is support for creating a DRI Image from a PRIME/DMA_BUF file descriptor. The patch series then goes on to add support for wl_drm buffer sharing via this file descriptor passing.

This work isn't for Wayland/Weston itself but to the DRI2 EGL driver, the Mesa DRI driver to support creating a DRI Image from a passed file descriptor, and the EGL Wayland DRM code living within Mesa.

The set of three patches can be found on the wayland-devel list.

In case you missed it, earlier this week Kristian also proposed pointer locks for Wayland that are modelled after the HTML5 pointer locking interface, which is primarily useful for gamers.

Discuss this article in our forums, IRC channel, or email the author. You can also follow our content via RSS and on social networks like Facebook, Identi.ca, and Twitter (@Phoronix and @MichaelLarabel). Subscribe to Phoronix Premium to view our content without advertisements, view entire articles on a single page, and experience other benefits.
Latest Hardware Reviews
  1. Intel Haswell HD Graphics 4600 vs. AMD Radeon Graphics On Linux
  2. Intel Haswell HD Graphics 4600 Performance On Ubuntu Linux
  3. Intel Core i7 4770K "Haswell" Benchmarks On Ubuntu Linux
  4. The First Experience Of Intel Haswell On Linux
Latest Software Articles
  1. Optimized Binaries Provide Great Benefits For Intel Haswell
  2. 11-Way Linux, BSD Platform Comparison
  3. SNA Acceleration Works Great For Intel Core i7 Haswell
  4. The Linux Evolution For Intel Haswell's Performance
Latest Linux News
  1. D Language Still Showing Promise, Advancements
  2. Planetary Annihilation Released For Linux Gamers
  3. Gentoo Starts Work On KDE-Wayland Support
  4. NVIDIA To License Its Kepler GPU Technology
  5. KDE's KWin Made Lots Of Progress In 4.11
  6. Ubuntu Announces Carrier Advisory Group
  7. Qt 5.1 Release Candidate 1 Has Arrived
  8. In-Fighting Continues Over Mir On Non-Unity Ubuntu
  9. Subversion 1.8 Presents New Features
  10. LLVM 3.3 Officially Released
  11. LLVM/Clang Now Uses Loop Vectorizer At New Levels
Latest Forum Talk
  1. Planetary Annihilation Plans To Come To Linux
  2. D Language Still Showing Promise, Advancements
  3. In-Fighting Continues Over Mir On Non-Unity Ubuntu
  4. The Wayland Situation: Facts About X vs. Wayland
  5. Intel GPU Driver Tries To Rip Out FBDEV Support
  6. Mir Still Causing Concerns By Ubuntu Derivatives
  1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Motherboards
  5. Peripherals
  6. Processors
  7. Software
  8. Operating Systems
  9. All Articles
  1. Linux Benchmarking
  2. OpenBenchmarking.org
  3. Phoronix Test Suite