| 1 |
Panfrost |
| 2 |
======== |
| 3 |
|
| 4 |
The Panfrost driver stack includes an OpenGL ES implementation for Arm Mali |
| 5 |
GPUs based on the Midgard and Bifrost microarchitectures. It is **conformant** |
| 6 |
on `Mali-G52 <https://www.khronos.org/conformance/adopters/conformant-products/opengles#submission_949>`__, |
| 7 |
`Mali-G57 <https://www.khronos.org/conformance/adopters/conformant-products/opengles#submission_980>`__ |
| 8 |
and `Mali-G610 <https://www.khronos.org/conformance/adopters/conformant-products/opengles#submission_1053>`__, |
| 9 |
but **non-conformant** on other GPUs. |
| 10 |
|
| 11 |
PanVK, the Vulkan implementation in the Panfrost driver stack, is currently |
| 12 |
**conformant** on `Mali-G610 <https://www.khronos.org/conformance/adopters/conformant-products#submission_939>`__, |
| 13 |
but *non-conformant* on other GPUs. |
| 14 |
|
| 15 |
The following hardware is currently supported: |
| 16 |
|
| 17 |
+--------------------+---------------+-----------+--------+--------+ |
| 18 |
| Models | Architecture | OpenGL ES | OpenGL | Vulkan | |
| 19 |
+====================+===============+===========+========+========+ |
| 20 |
| T600, T620, T720 | Midgard (v4) | 2.0 | 2.1 | | |
| 21 |
+--------------------+---------------+-----------+--------+--------+ |
| 22 |
| T760, T820, T830 | Midgard (v5) | 3.1 | 3.1 | | |
| 23 |
| T860, T880 | | | | | |
| 24 |
+--------------------+---------------+-----------+--------+--------+ |
| 25 |
| G72 | Bifrost (v6) | 3.1 | 3.1 | 1.0 | |
| 26 |
+--------------------+---------------+-----------+--------+--------+ |
| 27 |
| G31, G51, G52, G76 | Bifrost (v7) | 3.1 | 3.1 | 1.0 | |
| 28 |
+--------------------+---------------+-----------+--------+--------+ |
| 29 |
| G57 | Valhall (v9) | 3.1 | 3.1 | | |
| 30 |
+--------------------+---------------+-----------+--------+--------+ |
| 31 |
| G310, G610 | Valhall (v10) | 3.1 | 3.1 | 1.4 | |
| 32 |
+--------------------+---------------+-----------+--------+--------+ |
| 33 |
| G720 | 5th Gen (v12) | 3.1 | 3.1 | 1.4 | |
| 34 |
+--------------------+---------------+-----------+--------+--------+ |
| 35 |
| G725 | 5th Gen (v13) | 3.1 | 3.1 | 1.4 | |
| 36 |
+--------------------+---------------+-----------+--------+--------+ |
| 37 |
|
| 38 |
Other Midgard and Bifrost chips (e.g. G71) are not yet supported. |
| 39 |
|
| 40 |
Older Mali chips based on the Utgard architecture (Mali-400, Mali-450) are |
| 41 |
supported in the :doc:`Lima <lima>` driver, not Panfrost. Lima is also |
| 42 |
available in Mesa. |
| 43 |
|
| 44 |
Other graphics APIs (OpenCL) are not supported at this time. |
| 45 |
|
| 46 |
Building |
| 47 |
-------- |
| 48 |
|
| 49 |
Panfrost's OpenGL support is a Gallium driver. Since Mali GPUs are 3D-only and |
| 50 |
do not include a display controller, Mesa uses kmsro to support display |
| 51 |
controllers paired with Mali GPUs. If your board with a Panfrost supported GPU |
| 52 |
has a display controller with mainline Linux support not supported by kmsro, |
| 53 |
it's easy to add support, see the commit ``cff7de4bb597e9`` as an example. |
| 54 |
|
| 55 |
Build like ``meson . build/ -Dvulkan-drivers=panfrost |
| 56 |
-Dgallium-drivers=panfrost`` for a build directory |
| 57 |
``build``. |
| 58 |
|
| 59 |
LLVM is required by Panfrost's compilers at build time. |
| 60 |
|
| 61 |
In case of cross compilation without LLVM, |
| 62 |
you can build and install the required tools on the host (with LLVM installed) with |
| 63 |
``meson . build-host/ -Dtools=panfrost -Dmesa-clc=enabled -Dinstall-mesa-clc=true |
| 64 |
-Dprecomp-compiler=enabled -Dinstall-precomp-compiler=true`` |
| 65 |
and then use ``-Dmesa-clc=system -Dprecomp-compiler=system`` on the cross compile side. |
| 66 |
|
| 67 |
For general information on building Mesa, read :doc:`the install documentation |
| 68 |
<../install>`. |
| 69 |
|
| 70 |
Chat |
| 71 |
---- |
| 72 |
|
| 73 |
Panfrost developers and users hang out on IRC at ``#panfrost`` on OFTC. Note |
| 74 |
that registering and authenticating with ``NickServ`` is required to prevent |
| 75 |
spam. `Join the chat. <https://webchat.oftc.net/?channels=panfrost>`__ |
| 76 |
|
| 77 |
Technical details |
| 78 |
----------------- |
| 79 |
|
| 80 |
You can read more technical details about Panfrost here: |
| 81 |
|
| 82 |
.. toctree:: |
| 83 |
:glob: |
| 84 |
|
| 85 |
panfrost/* |