aboutsummaryrefslogtreecommitdiffstats
path: root/src/glsl/glsl_parser_extras.h
Commit message (Collapse)AuthorAgeFilesLines
* glsl: Remove useless ir_shader enumeration value.Kenneth Graunke2010-10-201-2/+1
|
* Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg2010-10-131-2/+2
|
* glsl: add support for shader stencil exportDave Airlie2010-10-131-0/+2
| | | | | This adds proper support for the GL_ARB_shader_stencil_export extension to the GLSL compiler. Thanks to Ian for pointing out where I need to add things.
* glsl: Add parser support for GL_ARB_explicit_attrib_location layoutsIan Romanick2010-10-081-0/+2
| | | | | Only layout(location=#) is supported. Setting the index requires GLSL 1.30 and GL_ARB_blend_func_extended.
* glsl: Define GL_ES preprocessor macro if API is OpenGL ES 2.0.Kenneth Graunke2010-09-071-1/+1
| | | | Also define it if #version 100 is encountered.
* glsl: Accept language version 100 and make it the default on ES2.Kenneth Graunke2010-09-071-0/+1
|
* glsl2: restructure header file for C++ and C inclusionBrian Paul2010-08-271-8/+28
| | | | As it was, the header could not be cleanly #included by a C source.
* glsl2: Free the shader compiler at dri screen destruction.Eric Anholt2010-08-181-0/+3
| | | | | | Hooray, we can valgrind again without adding suppressions. This also adds an interface for use by an implementation of glReleaseShaderCompiler().
* glsl: Garbage collect old prototype for ir_to_mesa.Eric Anholt2010-08-181-2/+0
|
* glsl2: Parser support for GL_ARB_fragment_coord_conventionsIan Romanick2010-07-281-0/+2
|
* glsl2: When a "continue" happens in a "for" loop, run the loop expression.Eric Anholt2010-07-221-0/+1
| | | | | | | Fixes: glsl1-for-loop with continue Bug #29097
* linker: Link built-in functions instead of including them in every shaderIan Romanick2010-07-211-0/+4
| | | | | | | | This is an invasive set of changes. Each user shader tracks a set of other shaders that contain built-in functions. During compilation, function prototypes are imported from these shaders. During linking, the shaders are linked with these built-in-function shaders just like with any other shader.
* glsl: Fix missing initialization of yylloc.sourceCarl Worth2010-07-211-0/+19
| | | | | | | | | | | | In both the preprocessor and in the compiler proper, we use a custom yyltype struct to allow tracking the source-string number in addition to line and column. However, we were previously relying on bison's default initialization of the yyltype struct which of course is not aware of the source field and leaves it uninitialized. We fix this by defining our own YYLLOC_DEFAULT macro expanding on the default version (as appears in the bison manual) and adding initialization of yylloc.source.
* glsl2: Add a constructor for _mesa_glsl_parse_stateIan Romanick2010-07-201-0/+22
| | | | Coming changes to the handling of built-in functions necessitate this.
* glsl2: Add definitions of the builtin constants present in GLSL 1.10.Eric Anholt2010-07-201-1/+14
| | | | | Fixes: glsl1-built-in constants
* glsl2: Remove generate_temporary and global temporary counter.Kenneth Graunke2010-07-081-3/+0
| | | | | | | 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...)
* glsl2: Conditionally allow optional extensions to be enabledIan Romanick2010-07-011-0/+3
| | | | | The only optional extension currently supported by the compiler is GL_EXT_texture_array.
* glsl2: Conditionally define preprocessor tokens for optional extensionsIan Romanick2010-07-011-1/+2
| | | | | The only optional extension currently supported by the compiler is GL_EXT_texture_array.
* glsl2: Add gl_MaxTextureCoordsIan Romanick2010-07-011-0/+1
|
* glsl2: Pass MaxDrawBuffers from core Mesa into the GLSL compilerIan Romanick2010-06-291-0/+9
|
* glsl2: Check for non-void functions that don't have a return statement.Kenneth Graunke2010-06-291-0/+3
| | | | | | | 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.
* glsl2: Move the compiler to the subdirectory it will live in in Mesa.Eric Anholt2010-06-241-0/+139