docs/nvk: Document NAK_DEBUG

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27885>
This commit is contained in:
Faith Ekstrand 2024-02-29 09:10:30 -06:00 committed by Marge Bot
parent d6638e89fd
commit c69f76170e

View file

@ -27,6 +27,21 @@ Debugging
Here are a few environment variable debug environment variables
specific to NVK:
:envvar:`NAK_DEBUG`:
a comma-separated list of named flags affecting the NVK back-end shader
compiler:
``print``
Prints the shader at various stages of the compile pipeline
``serial``
Forces serial instruction execution; this is often useful for
debugging or working around dependency bugs
``spill``
Forces the GPR file to a minimal size to test the spilling code
``annotate``
Adds extra annotation instructions to the IR to track information
from various compile passes
:envvar:`NVK_DEBUG`:
a comma-separated list of named flags, which do various things: