X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=docs%2Fshading.html;h=a0bbe997c1b8eeea572fa16260b4af329689cb9c;hb=ae7898dfdbe5c8dab7d11c71862353f1ae43feb0;hp=8b4cfb36a1fe38d312f5a4eeaa67d90fb11a1552;hpb=9f59cb2cdae15dc21cd9d27e4f80d0f8c841beef;p=mesa.git diff --git a/docs/shading.html b/docs/shading.html index 8b4cfb36a1f..a0bbe997c1b 100644 --- a/docs/shading.html +++ b/docs/shading.html @@ -64,6 +64,7 @@ execution. These are generally used for debugging. Example: export MESA_GLSL=dump,nopt

+

Experimenting with Shader Replacements

Shaders can be dumped and replaced on runtime for debugging purposes. This feature is not currently supported by SCons build. @@ -79,6 +80,20 @@ not clobber the replacement shaders. Also, the filenames of the replacement shad should match the filenames of the corresponding dumped shaders.

+

Capturing Shaders

+ +

+Setting MESA_SHADER_CAPTURE_PATH to a directory will cause the compiler +to write .shader_test files for use with +shader-db, a tool +which compiler developers can use to gather statistics about shaders +(instructions, cycles, memory accesses, and so on). +

+

+Notably, this captures linked GLSL shaders - with all stages together - +as well as ARB programs. +

+

GLSL Version