Clone this repo:

Branches

  1. 669dc79 Fix build.sh by Craig Stout · 2 days ago master
  2. 25b6ad7 Apply clang-format to .h files in src/ by Mark Seaborn · 2 days ago
  3. e87e210 Easily switch from debug to release by Craig Stout · 2 days ago
  4. af42d99 Add magma_info tool by Craig Stout · 6 days ago
  5. 35ee41a Add ioctl to dump driver status by Craig Stout · 6 days ago

Magma: Graphics for Magenta

Magma is a framework for graphics drivers on the Magenta kernel. Magma drivers are logically divided into a ‘System Driver’ which runs as a userspace Magenta driver service, and an ‘Application Driver’ which runs in the application's address space (this mirrors the architecture of the ‘Kernel Mode Driver’ and ‘User Mode Driver’ in traditional graphics stack for monolithic kernels, but here both components run in userspace).

Magma itself is the body of software that sits between the Application Driver and the System Driver and facilitates communication between the two over Magenta IPC, and provides core buffer sharing logic which underlies the system compositing mechanism.

Both the Application Driver and the System Driver interface with the Magma framework through stable, versioned, ABI's in order to allow updating the core graphics system and IHV drivers independently of one another.