Debian Codegraph @

docs/drivers/powervr.rst

raw
1 PowerVR
2 =======
3
4 PowerVR is a Vulkan driver for Imagination Technologies PowerVR GPUs, starting
5 with those based on the Rogue architecture.
6
7 The driver is conformant to Vulkan 1.0 on `BXS-4-64 <https://www.khronos.org/conformance/adopters/conformant-products#submission_936>`__,
8 but **not yet on other GPUs and Vulkan versions**, so it requires exporting
9 ``PVR_I_WANT_A_BROKEN_VULKAN_DRIVER=1`` to the environment before running any
10 Vulkan content.
11
12 The following hardware is currently in active development:
13
14 ========= =========== ============== =======
15 Product Series B.V.N.C Vulkan
16 ========= =========== ============== =======
17 AXE-1-16M A-Series 33.15.11.3 1.2
18 BXS-4-64 B-Series 36.53.104.796 1.2
19 BXM-4-64 B-Series 36.52.104.182 1.2
20 BXM-4-64 B-Series 36.56.104.183 1.2
21 ========= =========== ============== =======
22
23 The following hardware is partially supported and not currently
24 under active development:
25
26 ========= =========== ============== ======= ==========
27 Product Series B.V.N.C Vulkan Notes
28 ========= =========== ============== ======= ==========
29 GX6250 Series 6XT 4.40.2.51 1.2 [#GX6250]_
30 ========= =========== ============== ======= ==========
31
32 .. [#GX6250]
33 Various core-specific texture, compute, and other workarounds are
34 currently unimplemented for this device. Some very simple Vulkan applications
35 may run unhindered, but instability and corruption are to be expected until
36 the aforementioned workarounds are in place.
37
38 The following hardware is unsupported and not under active development:
39
40 ========= =========== ==============
41 Product Series B.V.N.C
42 ========= =========== ==============
43 GX6250 Series 6XT 4.45.2.58
44 GX6650 Series 6XT 4.46.6.62
45 G6110 Series 6XE 5.9.1.46
46 GE7800 Series 7XE 15.5.1.64
47 GE8300 Series 8XE 22.67.54.30
48 GE8300 Series 8XE 22.68.54.30
49 GE8300 Series 8XE 22.102.54.38
50 BXE-2-32 B-Series 36.29.52.182
51 BXE-4-32 B-Series 36.50.54.182
52 ========= =========== ==============
53
54 Device info and firmware_ have been made available for these devices, typically
55 due to community requests or interest, but no support is guaranteed beyond this.
56
57 .. _firmware: https://gitlab.freedesktop.org/imagination/linux-firmware
58
59 In some cases, a product name is shared across multiple BVNCs so to check for
60 support make sure the BVNC matches the one listed. As the feature set and
61 hardware issues can vary between BVNCs, additional driver changes might be
62 necessary even for devices sharing the same product name.
63
64 Hardware documentation can be found at: https://docs.imgtec.com/
65
66 Note: GPUs prior to Series6 do not have the hardware capabilities required to
67 support Vulkan and therefore cannot be supported by this driver.
68
69 Multi-Architecture support
70 --------------------------
71
72 In order to support multiple distinct hardware generations without too much
73 spaghetti-code, ther PowerVR compiles a few files multiple times (once per
74 hardware architecture), and uses a system of macros and aliases to be able
75 to refer to the different versions.
76
77 The files that gets compiled multiple times are those named
78 :file:`pvr_arch_*.c`. These files contains definitions of functions prefixed
79 with ``pvr_arch_`` (instead of the normal ``pvr_``-prefix). The ``arch``-bit
80 of that function is a placeholder, which gets replaced at compile-time, thanks
81 to a system of defines in the corresponding header file, supported by a set
82 of macros defined in :file:`pvr_macros.h`.
83
84 The intention is that these functions are mostly called from architecture
85 specific entrypoints, that are handled by the common vulkan dispatch-table
86 code. This means that a architecture specific function can easily call either
87 architecture specific or architecture agnostic code.
88
89 The tricky bit comes when architecture agnostic calls architecture specific
90 code. In that case, we have the ``PVR_ARCH_DISPATCH`` and
91 ``PVR_ARCH_DISPATCH_RET`` macros. These are a bit error-prone to use, because
92 they need to see definition for all architecture versions of each entrypoint,
93 which isn't something we have available. To work around this, we define a
94 ``PER_ARCH_FUNCS(arch)`` macro in each source-file that needs to use these
95 dispatch macros, and make sure to instantiate it once per architecture.
96
97 To avoid confusion, please do not add functions that are prefixed with
98 ``pvr_arch_`` if they are not part of the system described here.
99
100 Chat
101 ----
102
103 PowerVR developers and users hang out on IRC at ``#powervr`` on OFTC. Note
104 that registering and authenticating with ``NickServ`` is required to prevent
105 spam. `Join the chat. <https://webchat.oftc.net/?channels=powervr>`_
106
107 Hardware glossary
108 -----------------
109
110 .. glossary:: :sorted:
111
112 BVNC
113 Set of four numbers used to uniquely identify each GPU (Series6 onwards).
114 This is used to determine the GPU feature set, along with any known
115 hardware issues.