Debian Codegraph @

docs/drivers/nvk.rst

raw
1 NVK
2 ===
3
4 NVK is a Vulkan driver for NVIDIA GPUs.
5
6 Hardware support
7 ----------------
8
9 NVK currently supports Kepler (GeForce 600 and 700 series) and later GPUs up to
10 and including Ada (RTX 4000 series), as well as consumer Blackwell GPUs
11 (RTX 5000 series).
12
13 Conformance status:
14 -------------------
15
16 NVK is a conformant Vulkan 1.4 implementation for all officially supported
17 GPUs.
18
19 OpenGL support through Zink:
20 ----------------------------
21
22 Starting with Mesa 25.1, all Turing (RTX 2000 series and GTX 16xx) and
23 later GPUs will get NVK+Zink as their OpenGL implementation by default
24 instead of the old Nouveau GL driver. NVK+Zink is a conformant OpenGL 4.6
25 implementation. The Nouveau GL driver is no longer supported on these cards.
26
27 Kernel requirements
28 -------------------
29
30 NVK requires at least a Linux 6.6 kernel
31
32 Debugging
33 ---------
34
35 Here are a few environment variable debug environment variables
36 specific to NVK:
37
38 .. envvar:: NAK_DEBUG
39
40 a comma-separated list of named flags affecting the NVK back-end shader
41 compiler:
42
43 ``print``
44 Prints the shader at various stages of the compile pipeline
45 ``serial``
46 Forces serial instruction execution; this is often useful for
47 debugging or working around dependency bugs
48 ``spill``
49 Forces the GPR file to a minimal size to test the spilling code
50 ``annotate``
51 Adds extra annotation instructions to the IR to track information
52 from various compile passes
53
54 .. envvar:: NVK_DEBUG
55
56 a comma-separated list of named flags, which do various things:
57
58 ``push``
59 Dumps all pushbufs to stderr on submit. This requires that
60 ``push_sync`` also be set.
61 ``push_sync``
62 Waits for submit to complete before continuing
63 ``zero_memory``
64 Zeros all VkDeviceMemory objects upon creation
65 ``trash_memory``
66 Write repeating nonzero patterns to client memory allocations
67 ``vm``
68 Logs VM binds and unbinds
69 ``no_cbuf``
70 Disables automatic promotion of UBOs to constant buffers
71 ``edb_bview``
72 Forces the driver to use the VK_EXT_descriptor_buffer path for buffer
73 views.
74 ``gart``
75 Forces all memory to be allocated from system RAM (GART)
76 ``coherent``
77 Forces all memory maps to be coherent with the CPU caches. This only
78 applies to Tegra devices.
79
80 .. envvar:: NVK_I_WANT_A_BROKEN_VULKAN_DRIVER
81
82 If defined to ``1`` or ``true``, this will enable enumeration of all
83 GPUs Kepler and later, including GPUs for which hardware support is
84 poorly tested or completely broken. This is intended for developer use
85 only.
86
87 Developer info
88 --------------
89
90 .. toctree::
91 :glob:
92
93 nvk/*