Open Source Mali GPUs Gralloc Module
Gralloc Module Source Code For Mali-200/300/400/450, Mali-T6xx/T7xx/T860/T880, and Mali-Gxx based GPUs. The Gralloc Module for Android is licensed under the Apache License.
This is a software module that implements the Android Gralloc APIs. It allocates memory from the ION or the DMA-BUF Heaps Linux Kernel frameworks. Android’s composition engine uses the Gralloc module to allocate and manage memory which is suitable for 2D and 3D graphics usage. The Mali GPU driver stack can use this memory directly, resulting in zero-copy operations when compositing.
This component is not a complete driver stack. To build a functional OpenGL ES or Vulkan driver, you need access to the full source code of the Mali GPU Device Development Kit (DDK), which is provided under the standard Arm commercial licence to all Mali GPU customers. For a complete integration of the Mali GPU DDK with the Android environment refer to the Integration Guide supplied with the Mali GPU DDK.
The open-source code that is provided on this page is designed to run with a version-compatible release of the Mali GPU DDK. By releasing this software under the Apache licence, we hope to make it easier to include Mali GPU drivers in any Android platform.
This Gralloc module:
- Implements Android interfaces for managing allocations and CPU mapping of graphic buffers.
- Provides an interface for access to allocated memory through a shared file descriptor. This enables memory to be shared across different applications, drivers, and hardware components to facilitate zero-copy operations.