Archive of June 2020

R600_DEBUG Documentation Went Missing

Looks like Mesa's official documentation has gotten rid of documenting the R600_DEBUG environment variable. One can still get help for the parameters by passing R600_DEBUG=help

Currently it outputs the following information:

debug_get_flags_option: help for R600_DEBUG:
|               tex [0x0000000000000080] Print texture info
|               nir [0x0000000000000100] Enable experimental NIR shaders
|           compute [0x0000000000000200] Print compute info
|                vm [0x0000000000000800] Print virtual addresses when creating resources
|              info [0x0000010000000000] Print driver information
|                fs [0x0000000000000040] Print fetch shaders
|                vs [0x0000000000000001] Print vertex shaders
|                gs [0x0000000000000004] Print geometry shaders
|                ps [0x0000000000000002] Print pixel shaders
|                cs [0x0000000000000020] Print compute shaders
|               tcs [0x0000000000000008] Print tessellation control shaders
|               tes [0x0000000000000010] Print tessellation evaluation shaders
|              noir [0x0000000000001000] Don't print the LLVM IR
|            notgsi [0x0000000000002000] Don't print the TGSI
|             noasm [0x0000000000004000] Don't print disassembled shaders
|          preoptir [0x0000000000008000] Print the LLVM IR before initial optimizations
|           checkir [0x0000000000010000] Enable additional sanity checks on shader IR
|      nooptvariant [0x0000000000020000] Disable compiling optimized shader variants.
|           testdma [0x0000000000100000] Invoke SDMA tests and exit.
|     testvmfaultcp [0x0008000000000000] Invoke a CP VM fault test and exit.
|   testvmfaultsdma [0x0010000000000000] Invoke a SDMA VM fault test and exit.
| testvmfaultshader [0x0020000000000000] Invoke a shader VM fault test and exit.
|             nodma [0x0000000100000000] Disable asynchronous DMA
|          nohyperz [0x0000000200000000] Disable Hyper-Z
|      noinvalrange [0x0000000400000000] Disable handling of INVALIDATE_RANGE map flags
|              no2d [0x0000000800000000] Disable 2D tiling
|          notiling [0x0000001000000000] Disable tiling
|     switch_on_eop [0x0000002000000000] Program WD/IA to switch on end-of-packet.
|          forcedma [0x0000004000000000] Use asynchronous DMA for all operations when possible.
|        precompile [0x0000008000000000] Compile one shader variant at shader creation.
|              nowc [0x0000020000000000] Disable GTT write combining
|          check_vm [0x0000040000000000] Check VM faults and dump debug info.
|        unsafemath [0x0002000000000000] Enable unsafe math shader optimizations
debug_get_flags_option: help for R600_DEBUG:
|      nocpdma [0x0000000040000000] Disable CP DMA
|         nosb [0x0000000000200000] Disable sb backend for graphics shaders
|         sbcl [0x0000000000400000] Enable sb backend for compute shaders
|        sbdry [0x0000000000800000] Don't use optimized bytecode (just print the dumps)
|       sbstat [0x0000000001000000] Print optimization statistics for shaders
|       sbdump [0x0000000002000000] Print IR dumps after some optimization passes
| sbnofallback [0x0000000004000000] Abort on errors instead of fallback
|     sbdisasm [0x0000000008000000] Use sb disassembler for shader dumps
|   sbsafemath [0x0000000010000000] Disable unsafe math optimizations