X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=docs%2Fshading.html;h=ae7b8e6c5eae19d4e8fddfa9a8240c19505b7c7c;hb=2282ec0ad6581b588f7bdde1211357123316b4b9;hp=b77745fbf37efbcf06fefe66096ecb37b21e7d31;hpb=a3ee0aa1bb7c3f9dfc5b13b4e72522c10a22ad05;p=mesa.git diff --git a/docs/shading.html b/docs/shading.html index b77745fbf37..ae7b8e6c5ea 100644 --- a/docs/shading.html +++ b/docs/shading.html @@ -1,28 +1,33 @@ - + + + + + Shading Language + + + -Shading Language Support +
+ The Mesa 3D Graphics Library +
- + +
- - -

Shading Language Support

+

Shading Language

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

-

-Last updated on 15 December 2008. -

-

Contents

+

Environment Variables

- -

GLSL 1.20 support

+

+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

-GLSL version 1.20 is supported in Mesa 7.3. -Among the features/differences of GLSL 1.20 are: +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

- -

Unsupported Features

+

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

-The following features of the shading language are not yet supported +Several GLSL extensions are also supported: +

+ + + +

Unsupported Features

+ +

XXX update this section

+ +

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

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

-
-

Implementation Notes

+

Implementation Notes

+ +