X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=docs%2Fshading.html;h=a0bbe997c1b8eeea572fa16260b4af329689cb9c;hb=9f77a9729eb62d7688b796a546e42934496f872a;hp=c789102e64139b8d866c9dc5302e398e63f038ac;hpb=a74300c7ff256b417079134f7bd9aea91153025b;p=mesa.git diff --git a/docs/shading.html b/docs/shading.html index c789102e641..a0bbe997c1b 100644 --- a/docs/shading.html +++ b/docs/shading.html @@ -64,9 +64,9 @@ 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. Mesa -needs to be configured with '--with-sha1' to enable this functionality. This +Shaders can be dumped and replaced on runtime for debugging purposes. This feature is not currently supported by SCons build. This is controlled via following environment variables: @@ -76,7 +76,22 @@ This is controlled via following environment variables: Note, path set must exist before running for dumping or replacing to work. When both are set, these paths should be different so the dumped shaders do -not clobber the replacement shaders. +not clobber the replacement shaders. Also, the filenames of the replacement shaders +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