From 8f9db0f81c13c3244f07333f33a15bfe098e0f31 Mon Sep 17 00:00:00 2001 From: Brian Date: Fri, 23 Mar 2007 17:49:19 -0600 Subject: document internal compiler options --- docs/shading.html | 46 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) (limited to 'docs/shading.html') diff --git a/docs/shading.html b/docs/shading.html index cb2c1c3209..40a6d7ac90 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;
    +};
    +
    + + -- cgit v1.2.3