X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=docs%2Fshading.html;h=c789102e64139b8d866c9dc5302e398e63f038ac;hb=d91f97f91db4a826f7d5909a2a63a028a81188bb;hp=19e20b183b63fa262930a1d8b453c8a7c23b5baa;hpb=d4956699656187297b028017731a10076ad0993e;p=mesa.git diff --git a/docs/shading.html b/docs/shading.html index 19e20b183b6..c789102e641 100644 --- a/docs/shading.html +++ b/docs/shading.html @@ -18,7 +18,7 @@
This page describes the features and status of Mesa's support for the - + OpenGL Shading Language.
@@ -49,8 +49,9 @@ execution. These are generally used for debugging.+Shaders can be dumped and replaced on runtime for debugging purposes. Mesa +needs to be configured with '--with-sha1' to enable this functionality. This +feature is not currently supported by SCons build. + +This is controlled via following environment variables: +
-The GLSL compiler currently supports version 1.40 of the shading language. +The GLSL compiler currently supports version 3.30 of the shading language.
@@ -158,7 +173,7 @@ This tool is useful for:
-After building Mesa, the compiler can be found at src/glsl/glsl_compiler +After building Mesa, the compiler can be found at src/compiler/glsl/glsl_compiler
@@ -166,7 +181,7 @@ Here's an example of using the compiler to compile a vertex shader and emit GL_ARB_vertex_program-style instructions:
- src/glsl/glsl_compiler --dump-ast myshader.vert + src/compiler/glsl/glsl_compiler --version XXX --dump-ast myshader.vertOptions include @@ -174,7 +189,11 @@ Options include
The source code for Mesa's shading language compiler is in the
-src/glsl/
directory.
+src/compiler/glsl/
directory.
@@ -195,51 +214,6 @@ The final vertex and fragment programs may be interpreted in software (see drivers/dri/i915/i915_fragprog.c for example).
--Internally, there are several options that control the compiler's code -generation and instruction selection. -These options are seen in the gl_shader_state struct and may be set -by the device driver to indicate its preferences: - -
-struct gl_shader_state -{ - ... - /** Driver-selectable options: */ - GLboolean EmitHighLevelInstructions; - GLboolean EmitCondCodes; - GLboolean EmitComments; -}; -- -
@@ -248,7 +222,7 @@ regressions.
-The Piglit project +The Piglit project has many GLSL tests.