Ian Romanick
ed0626ebc7
ir_variable: Set locations for shader built-in variables
2010-06-23 10:56:03 -07:00
Eric Anholt
ac95f2f8c8
Include stdio.h and stdlib.h everywhere, and don't cook our own #define NULL.
2010-06-22 12:30:55 -07:00
Ian Romanick
cfb3536f10
Bump GL_MAX_TEXTURE_COORDS from 2 to 4
...
Every platform that supports GLSL sets GL_MAX_TEXTURE_COORDS to at
least 4, so hard-code 4 for now.
This causes the following tests to pass:
glslparsertest/glsl2/norsetto-bumptbn_sh_fp.vert
glslparsertest/glsl2/xreal-lighting-d-omni.vert
glslparsertest/glsl2/xreal-lighting-db-omni.vert
glslparsertest/glsl2/xreal-lighting-dbs-omni.vert
2010-06-07 19:10:33 -07:00
Eric Anholt
aa5794384f
Add builtin gl_LightSource[].
...
Fixes gst-gl-bumper.vert parsing.
2010-06-01 15:36:01 -07:00
Eric Anholt
81f49a774e
Quiet warnings about ir_shader not being handled in places it's not needed.
2010-05-03 11:40:26 -07:00
Ian Romanick
3eba593f35
Implement gl_TextureMatrix built-in uniform
2010-04-26 14:59:32 -07:00
Eric Anholt
ec9e73870c
Put static pointers to vec[234]_types along with the static float_type.
...
Otherwise you have to type a lot of get_instance.
2010-04-23 16:12:44 -07:00
Ian Romanick
ff236fa9b6
Add missing break statement
2010-04-21 15:08:08 -07:00
Eric Anholt
71df19f5ef
Mark some variables as having usage beyond the shader's scope.
...
This will be important to optimization passes. We don't want to
dead-code eliminate writes to out varyings, or propagate uninitialized
values of uniforms.
2010-04-19 11:13:20 -07:00
Ian Romanick
c77b257094
Add support for GL_ARB_draw_buffers extension
2010-04-07 16:59:46 -07:00
Ian Romanick
1b3f47fd36
Call glsl_type::get_instance correctly: the number of rows must be at least 1
...
This causes the following tests to pass:
shaders/glsl-tex-mvp.vert
2010-04-07 16:49:25 -07:00
Ian Romanick
8645a955fc
Add gl_ClipDistance in fragment shader
2010-04-07 16:49:25 -07:00
Eric Anholt
271e199673
Add definition of gl_ClipDistance[]
2010-04-05 16:45:02 -07:00
Ian Romanick
3f9a73d121
Make built-in gl_TexCoord available in vertex and fragment shaders
2010-04-02 11:59:57 -07:00
Eric Anholt
78fe3c9150
Add definitions for 1.10 built-in uniforms for ff state.
2010-03-29 12:48:45 -07:00
Eric Anholt
0f09aea3bf
Add support for builtin deprecated fs varyings.
...
Fixes glsl-color.frag.
2010-03-29 12:48:45 -07:00
Eric Anholt
b3f743ab0b
Set up fragment shader builtin variables.
2010-03-25 14:48:25 -07:00
Ian Romanick
8bde4cec6b
Use glsl_symbol_table instead of using _mesa_symbol_table directly
2010-03-19 11:57:24 -07:00
Ian Romanick
adfb0cd740
IR variable: Initial work to support GLSL built-in variables
2010-03-10 10:43:54 -08:00