Open Source Mali GPUs Android Gralloc Module
Android Gralloc Module Source Code For Mali-200/300/400/450, Mali-T6xx/T7xx/T860/T880, and Mali-Gxx based GPUs. Linux/Android Gralloc Module Under Apache License.
This is an Android Gralloc module which allocates memory from the ION memory manager. 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 ION 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.
The Android Gralloc module:
- Implements Android interfaces for managing allocations and CPU mapping of graphic buffers.
- Provides an interface for access to allocated ION memory through a shared file descriptor. This enables memory to be shared across different applications, drivers, and hardware components to facilitate zero-copy operations.