Ian Romanick
2462a536ea
glsl2: Add a constructor for _mesa_glsl_parse_state
...
Coming changes to the handling of built-in functions necessitate this.
2010-07-20 17:48:24 -07:00
Eric Anholt
f8946699ec
glsl2: Add definitions of the builtin constants present in GLSL 1.10.
...
Fixes:
glsl1-built-in constants
2010-07-20 14:03:35 -07:00
Kenneth Graunke
dfd30ca6a9
glsl2: Remove generate_temporary and global temporary counter.
...
Most places in the code simply use a static name, which works because
names are never used to look up an ir_variable. generate_temporary is
simply unnecessary (and looks like it would leak memory, and isn't
thread safe...)
2010-07-08 15:44:19 -07:00
Ian Romanick
667f4e1940
glsl2: Conditionally allow optional extensions to be enabled
...
The only optional extension currently supported by the compiler is
GL_EXT_texture_array.
2010-07-01 20:40:08 -07:00
Ian Romanick
06143ea094
glsl2: Conditionally define preprocessor tokens for optional extensions
...
The only optional extension currently supported by the compiler is
GL_EXT_texture_array.
2010-07-01 20:40:08 -07:00
Ian Romanick
127308b4be
glsl2: Add gl_MaxTextureCoords
2010-07-01 13:30:50 -07:00
Ian Romanick
5e18b051c0
glsl2: Pass MaxDrawBuffers from core Mesa into the GLSL compiler
2010-06-29 15:19:38 -07:00
Kenneth Graunke
6de8256505
glsl2: Check for non-void functions that don't have a return statement.
...
This doesn't do any control flow analysis to ensure that the return
statements are actually reached.
Fixes piglit tests function5.frag and function-07.vert.
2010-06-29 11:12:54 -07:00
Eric Anholt
2928588267
glsl2: Move the compiler to the subdirectory it will live in in Mesa.
2010-06-24 15:36:00 -07:00