summaryrefslogtreecommitdiffstats
path: root/src/glsl/glsl_parser_extras.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-07-20 14:03:35 -0700
committerEric Anholt <[email protected]>2010-07-20 14:03:35 -0700
commitf8946699ecfa5bc6566821fb855072bbdbd716b2 (patch)
tree891821c44e113f52f5c36bcf7e1af24d452afb0a /src/glsl/glsl_parser_extras.h
parent1245babe0c69846d227a78a11429584433e77a9e (diff)
glsl2: Add definitions of the builtin constants present in GLSL 1.10.
Fixes: glsl1-built-in constants
Diffstat (limited to 'src/glsl/glsl_parser_extras.h')
-rw-r--r--src/glsl/glsl_parser_extras.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/glsl/glsl_parser_extras.h b/src/glsl/glsl_parser_extras.h
index 4b28ae118df..fed6e8c823f 100644
--- a/src/glsl/glsl_parser_extras.h
+++ b/src/glsl/glsl_parser_extras.h
@@ -49,8 +49,21 @@ struct _mesa_glsl_parse_state {
* \sa struct gl_constants (in mtypes.h)
*/
struct {
- unsigned MaxDrawBuffers;
+ /* 1.10 */
+ unsigned MaxLights;
+ unsigned MaxClipPlanes;
+ unsigned MaxTextureUnits;
unsigned MaxTextureCoords;
+ unsigned MaxVertexAttribs;
+ unsigned MaxVertexUniformComponents;
+ unsigned MaxVaryingFloats;
+ unsigned MaxVertexTextureImageUnits;
+ unsigned MaxCombinedTextureImageUnits;
+ unsigned MaxTextureImageUnits;
+ unsigned MaxFragmentUniformComponents;
+
+ /* ARB_draw_buffers */
+ unsigned MaxDrawBuffers;
} Const;
/**