summaryrefslogtreecommitdiffstats
path: root/src/glsl/glsl_parser_extras.h
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2010-06-29 14:21:05 -0700
committerIan Romanick <[email protected]>2010-06-29 15:19:38 -0700
commit5e18b051c039564d1998818d08caf1bff3983630 (patch)
treef3e18487e1094a547d86615f8837e32f7f4a5913 /src/glsl/glsl_parser_extras.h
parentefc15f862b08a9f035c06a79bc43848cca740372 (diff)
glsl2: Pass MaxDrawBuffers from core Mesa into the GLSL compiler
Diffstat (limited to 'src/glsl/glsl_parser_extras.h')
-rw-r--r--src/glsl/glsl_parser_extras.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/glsl/glsl_parser_extras.h b/src/glsl/glsl_parser_extras.h
index 726bafa7e4b..f957a926be3 100644
--- a/src/glsl/glsl_parser_extras.h
+++ b/src/glsl/glsl_parser_extras.h
@@ -44,6 +44,15 @@ struct _mesa_glsl_parse_state {
enum _mesa_glsl_parser_targets target;
/**
+ * Implementation defined limits that affect built-in variables, etc.
+ *
+ * \sa struct gl_constants (in mtypes.h)
+ */
+ struct {
+ unsigned MaxDrawBuffers;
+ } Const;
+
+ /**
* During AST to IR conversion, pointer to current IR function
*
* Will be \c NULL whenever the AST to IR conversion is not inside a