From: Brian Date: Fri, 23 Mar 2007 23:49:19 +0000 (-0600) Subject: document internal compiler options X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8f9db0f81c13c3244f07333f33a15bfe098e0f31;p=mesa.git document internal compiler options --- diff --git a/docs/shading.html b/docs/shading.html index cb2c1c3209b..40a6d7ac90b 100644 --- a/docs/shading.html +++ b/docs/shading.html @@ -67,7 +67,7 @@ All other major features of the shading language should function.
  • The quality of generated code is pretty good, register usage is fair.
  • Shader error detection and reporting of errors (InfoLog) is not very good yet. -
  • There are massive memory leaks in the compiler. +
  • There are known memory leaks in the compiler.

    @@ -236,6 +236,50 @@ The final vertex and fragment programs may be interpreted in software (see drivers/dri/i915/i915_fragprog.c for example).

    +

    Code Generation Options

    + +

    +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;
    +};
    +
    + +