Eric Anholt
73df636e04
glsl2: Size builtin arrays according to the context constants.
...
Cleans up some of the FINISHMEs in this file.
2010-07-28 11:16:19 -07:00
Ian Romanick
f38d15b80d
glsl2: glsl_type has its own talloc context, don't pass one in
2010-07-20 17:48:25 -07:00
Ian Romanick
7e2aa91507
glsl2: Add and use new variable mode ir_var_temporary
...
This is quite a large patch because breaking it into smaller pieces
would result in the tree being intermitently broken. The big changes
are:
* Add the ir_var_temporary variable mode
* Change the ir_variable constructor to take the mode as a
parameter and correctly specify the mode for all ir_varables.
* Change the linker to not cross validate ir_var_temporary
variables.
* Change the linker to pull all ir_var_temporary variables from
global scope into 'main'.
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
Eric Anholt
152b55e74d
glsl2: Add support for gl_PointCoord in 1.20.
...
Fixes glsl-fs-pointcoord on swrast (remains broken on 965, like master)
2010-07-07 19:45:22 -07:00
Ian Romanick
127308b4be
glsl2: Add gl_MaxTextureCoords
2010-07-01 13:30:50 -07:00
Ian Romanick
cd00d5b88c
glsl2: Default delcaration of gl_TexCoord is unsized
2010-07-01 13:17:54 -07:00
Ian Romanick
22971e922a
glsl2: Make gl_MaxDrawBuffers available in the vertex shader
2010-06-29 15:32:19 -07:00
Ian Romanick
e2f84f04e5
glsl2: Make gl_MaxDrawBuffers available in the fragment shader
2010-06-29 15:32:15 -07:00
Ian Romanick
9c4b1f2bad
glsl2: Make gl_FragData be available in GLSL 1.10 too
2010-06-29 15:19:42 -07:00
Ian Romanick
5e18b051c0
glsl2: Pass MaxDrawBuffers from core Mesa into the GLSL compiler
2010-06-29 15:19:38 -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