X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=docs%2Fshading.html;h=750884cf36c448c8acfb7fd98edb0d0d70bfa5e7;hb=fd7de146f6c5989ab3a8459d600ca3386571b31f;hp=1a60e5b708dbbd8019b0d946c6b77dd43aa7a68c;hpb=3bfedb7ed4a35cfcc7187bc22314833ef1d96ec9;p=mesa.git diff --git a/docs/shading.html b/docs/shading.html index 1a60e5b708d..750884cf36c 100644 --- a/docs/shading.html +++ b/docs/shading.html @@ -14,14 +14,12 @@ This page describes the features and status of Mesa's support for the OpenGL Shading Language.
--Last updated on 28 March 2007. -
-Contents
+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 +
+ + + ++GLSL version 1.20 is supported in Mesa 7.3 and later. +Among the features/differences of GLSL 1.20 are: +
mat2x3, mat2x4
, etc. types and functions
+transpose(), outerProduct(), matrixCompMult()
functions
+(but untested)
+invariant
qualifier
+array.length()
method
+float[5] a;
array syntax
+centroid
qualifier
+-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:
@@ -155,10 +201,11 @@ This tool is useful for:
-After building Mesa the glslcompiler should be found in the Mesa/bin/ directory. -If it's not there, it can be built manually: +After building Mesa, the glslcompiler can be built by manually running:
+ make realclean + make linux cd src/mesa/drivers/glslcompiler make@@ -304,11 +351,11 @@ Extra NOP instructions will also be inserted.
-A new Glean test has +A Glean test has been create to exercise the GLSL compiler.
-The glsl1 test runs over 150 sub-tests to check that the language +The glsl1 test runs over 170 sub-tests to check that the language features and built-in functions work properly. This test should be run frequently while working on the compiler to catch regressions.