X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=docs%2Fshading.html;h=9e3c7218e31e5ad8385c76585a4bf22c3a8a433a;hb=9dc776f3f2913df9e0ed93619c2458bda752d43b;hp=2cd17c76ac927fede0709978942559766d26ed6a;hpb=cf85e413ad7672c1cef73215222ca1caa8e48b30;p=mesa.git diff --git a/docs/shading.html b/docs/shading.html index 2cd17c76ac9..9e3c7218e31 100644 --- a/docs/shading.html +++ b/docs/shading.html @@ -1,55 +1,130 @@ - + + + + + Shading Language Support + + + -Shading Language Support +
+

The Mesa 3D Graphics Library

+
- + +
- - -

Shading Language Support

+

Shading Language Support

This page describes the features and status of Mesa's support for the - + OpenGL Shading Language.

-

-Last updated on 28 March 2007. -

-

Contents

- -

Unsupported Features

+

Environment Variables

+ +

+The MESA_GLSL environment variable can be set to a comma-separated +list of keywords to control some aspects of the GLSL compiler and shader +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. + +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. 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

+ +

+The GLSL compiler currently supports version 3.30 of the shading language. +

+ +

+Several GLSL extensions are also supported: +

+ + + +

Unsupported Features

+ +

XXX update this section

-The following features of the shading language are not yet supported +The following features of the shading language are not yet fully supported in Mesa:

@@ -57,8 +132,7 @@ All other major features of the shading language should function.

- -

Implementation Notes

+

Implementation Notes

+ +