X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=docs%2Fshading.html;h=a28c5b33b04ef129ab11b5ebf05b850f410f6f10;hb=b3b415609d06c0e50880437073fcb369f4e4f625;hp=cf989ce9029a6a420ef55f94419d7ec37b8c165d;hpb=89e421369c54a8edc4930352e062f03b5c66b886;p=mesa.git diff --git a/docs/shading.html b/docs/shading.html index cf989ce9029..a28c5b33b04 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,6 +49,7 @@ execution. These are generally used for debugging.
  • log - log all GLSL shaders to files. The filenames will be "shader_X.vert" or "shader_X.frag" where X the shader ID. +
  • cache_info - print debug information about shader cache
  • nopt - disable compiler optimizations
  • opt - force compiler optimizations
  • uniform - print message to stdout when glUniform is called @@ -172,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

    @@ -180,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.vert
     
    Options include @@ -188,7 +189,11 @@ Options include
  • --dump-ast - dump GPU code
  • --dump-hir - dump high-level IR code
  • --dump-lir - dump low-level IR code -
  • --link - ??? +
  • --dump-builder - dump GLSL IR code +
  • --link - link shaders +
  • --just-log - display only shader / linker info if exist, +without any header or separator +
  • --version - [Mandatory] define the GLSL version to use @@ -196,7 +201,7 @@ Options include

    The source code for Mesa's shading language compiler is in the -src/glsl/ directory. +src/compiler/glsl/ directory.

    @@ -217,7 +222,7 @@ regressions.

    -The Piglit project +The Piglit project has many GLSL tests.