summaryrefslogtreecommitdiff
path: root/docs/drivers/panfrost.rst
blob: a8b63da2441ca84e3c5efd604382d558eb25a8de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
Panfrost
========

The Panfrost driver stack includes an OpenGL ES implementation for Arm Mali
GPUs based on the Midgard and Bifrost microarchitectures. It is **conformant**
on `Mali-G52 <https://www.khronos.org/conformance/adopters/conformant-products/opengles#submission_949>`_
and `Mali-G57 <https://www.khronos.org/conformance/adopters/conformant-products/opengles#submission_980>`_
but **non-conformant** on other GPUs. The following hardware is currently
supported:

+--------------------+---------------+-----------+--------+
| Models             | Architecture  | OpenGL ES | OpenGL |
+====================+===============+===========+========+
| T600, T620, T720   | Midgard (v4)  | 2.0       | 2.1    |
+--------------------+---------------+-----------+--------+
| T760, T820, T830   | Midgard (v5)  | 3.1       | 3.1    |
| T860, T880         |               |           |        |
+--------------------+---------------+-----------+--------+
| G72                | Bifrost (v6)  | 3.1       | 3.1    |
+--------------------+---------------+-----------+--------+
| G31, G51, G52, G76 | Bifrost (v7)  | 3.1       | 3.1    |
+--------------------+---------------+-----------+--------+
| G57                | Valhall (v9)  | 3.1       | 3.1    |
+--------------------+---------------+-----------+--------+
| G310, G610         | Valhall (v10) | 3.1       | 3.1    |
+--------------------+---------------+-----------+--------+

Other Midgard and Bifrost chips (e.g. G71) are not yet supported.

Older Mali chips based on the Utgard architecture (Mali-400, Mali-450) are
supported in the :doc:`Lima <lima>` driver, not Panfrost. Lima is also
available in Mesa.

Other graphics APIs (Vulkan, OpenCL) are not supported at this time.

Building
--------

Panfrost's OpenGL support is a Gallium driver. Since Mali GPUs are 3D-only and
do not include a display controller, Mesa uses kmsro to support display
controllers paired with Mali GPUs. If your board with a Panfrost supported GPU
has a display controller with mainline Linux support not supported by kmsro,
it's easy to add support, see the commit ``cff7de4bb597e9`` as an example.

LLVM is *not* required by Panfrost's compilers. LLVM support in Mesa can
safely be disabled for most OpenGL ES users with Panfrost.

Build like ``meson . build/ -Dvulkan-drivers=
-Dgallium-drivers=panfrost -Dllvm=disabled`` for a build directory
``build``.

For general information on building Mesa, read :doc:`the install documentation
<../install>`.

Chat
----

Panfrost developers and users hang out on IRC at ``#panfrost`` on OFTC. Note
that registering and authenticating with ``NickServ`` is required to prevent
spam. `Join the chat. <https://webchat.oftc.net/?channels=panfrost>`_

Technical details
-----------------

You can read more technical details about Panfrost here:

.. toctree::
   :glob:

   panfrost/*