From c69f76170ea33cc2ed3983285364b27a6e166fc0 Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Thu, 29 Feb 2024 09:10:30 -0600 Subject: [PATCH] docs/nvk: Document NAK_DEBUG Part-of: --- docs/drivers/nvk.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/drivers/nvk.rst b/docs/drivers/nvk.rst index 5f5ced2d4a4..bb57cb849ef 100644 --- a/docs/drivers/nvk.rst +++ b/docs/drivers/nvk.rst @@ -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: